cancel
Showing results for 
Search instead for 
Did you mean: 

convert view to pdf for printing

Former Member
0 Kudos

Hi

Please help me in converting a view to a pdf for printing in a webdynpro application.

Accepted Solutions (1)

Accepted Solutions (1)

former_member197348
Active Contributor
0 Kudos

Hi Vidyadhar,

convert data to byte[]. Use the following code

try{

IWDResource wr = WDResourceFactory.createCachedResource(byte[] data , "PDF Report", WDWebResourceType.PDF);

IWDWindow w = wdComponentAPI.getWindowManager().createNonModalExternalWindow(wr.getUrl(0), "PDF Report");

w.show();

}

try (Exception e){

wdComponentAPI.getMessageManager().reportException(e.getLocalizedMessage(), false);

}

regards,

Siva.

Former Member
0 Kudos

hi,

can u plz help me in how can we create pdf from webdynpro node and how we can extract data from this pdf in node.

thanks and regards

Trilochan

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Converting View to pdf is not clear. But you can use ITEXT.jar properties and send the contents of your view to class file using ITEXT apis. the process is similar to Excel from Web Dynpro Application, only ITEXT apis is been used.

Thanks

Srikant