cancel
Showing results for 
Search instead for 
Did you mean: 

Call print function from ABAP/BSP

Former Member
0 Kudos

Hi all,

I've an holiday map that is called from portal as a bsp, it open in a new window without the functions "file", etc.. an window only with the top bar (minimize, maximize and close), then, if I press CTRL-P it opens print functionality, how can I call it from a buttom in the BSP !?!?

Thanks all for the help,

Best Regards,

Pedro Rodrigues.

Accepted Solutions (1)

Accepted Solutions (1)

former_member191062
Active Contributor
0 Kudos

Hello,

this can be done via Javascript, use something like:

'this.window.print();'

You can place this behind a link like:

<a href="javascript:this.window.print();">print this</a>

if you place this on the page and click, the standard print options dialog will appear.

Regards,

Dezso

Former Member
0 Kudos

Dear Dezso Pap,

that work just like i wanted, thanks,

Regards,

Pedro

Former Member
0 Kudos

Dear Dezso,

One more question, I've an image an it is to much larger and even in landscape mode, printer cuts that image, do you know how i could print it in more than one page ?

Thanks,

Pedro

former_member191062
Active Contributor
0 Kudos

Hello Pedro,

the problem here is, that the Internet Explorer provides this image with a given size for the Windows Pinting environment. The easiest way to go is surely to have image wich can fit on the paper, or many printers support "scaling". You should find this on the print dialog >> preferences >> paper / quality >> advanced. /* E.g. oure HPLJ 4050 printer supports this */

I hope it helps.

Regards,

Dezso

Answers (0)