cancel
Showing results for 
Search instead for 
Did you mean: 

Setup Window page from BSP. E.g.: Orientation: Portrait-Landscape

Former Member
0 Kudos

I have to set the Window page attributes from BSP.

E.g.: I have to use Landscape orientation and specific

margin values. And my BSP application should be able

to set these values automatically.

How can I do it?

Thanks for any help!

Kind Regards: Pal Halasz

Accepted Solutions (0)

Answers (1)

Answers (1)

gregorw
Active Contributor
0 Kudos

To make it clearer: Do you want to influence the settings of the Print dialog if the user presses the print button? If you wan't that I think that there is no chance with HTML. Try to use a PDF File for output.

Former Member
0 Kudos

Hello,

what I think of:

In the menu of the window:

File->Page Setup->Orientations (and Margins)

I already realized that it's not possible to set it nor from HTML neither from ABAP(?). But isn't there some

Java solution for it? I mean if I open a new window with

JavaScript isn't there some attribute of the window.open()for set these values?

Anyway lot of thanks!

Kind Regards: Pal Halasz

Former Member
0 Kudos

Hi Pal,

first of all JavaScript has nothing to do with Java.

With JavaScript and the window.open() function you're able to influence some parameters of a new window. It is often used to define the size of a pop-up. Another thing you can do is hide some browser-bars.

What you are trying to do is influence the print-setup of the page. And to my knowledge this is not possible with html or JavaScript.

Even Java won't help a lot. If you are using a Browser all you can do is make Java generate html and JavaScript. If you are not using a browser but some own GUI you should be able to do this, but that is beyond BSP...

The only way I could think of for doing this is using some weird ActiveX-Control which is taking over control of IE...

Please correct me if I'm wrong.

For html, JavaScript and so on have a look at http://selfhtml.teamone.de (afaik only available in german)

Regards,

Alex

Former Member
0 Kudos

Hello Alexander,

thanks for the help. It helped me a lot because now I

know where to look for it and where not!

Kind Regards: Pal