cancel
Showing results for 
Search instead for 
Did you mean: 

Print in WebDynpro

Former Member
0 Kudos

Hi,

I am not able to find any functionality to provide a PRINT function on a WebDynpro. Just, i want to provide a button in a VIEW, when click on that, it would bring the browser print functionality, such as window.print().

Any idea? Your replies are really appreciated.

Thanks

Vijay

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You can use Adobe Forms as explained in the following link

http://help.sap.com/saphelp_nw2004s/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/frameset.htm

Former Member
0 Kudos
vijayakhanna_raman
Active Contributor
0 Kudos

Hi,

No print functionality in webdynpro,

Use Smart Forms in ABAB and call this as a RFC in webdynpro,

This will show as a PDF document then u can print normally.

Use this code.

byte[] pdfContent={here document is created i.e returned from RFC};

IWDCachedWebResource pdfResource=WDWebResource.getWebResource (pdfContent,WDWebResourceType.PDF);

wdComponentAPI.getWindowManager().createExternalWindow(

pdfResource.getURL(),"receipt view",true).open();

Regards,

Vijayakhanna Raman