on 07-30-2007 9:51 AM
Hi
Please help me in converting a view to a pdf for printing in a webdynpro application.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.