on 04-23-2008 10:01 AM
Hi all, I've a web dynpro in which my client fill any fields. One of this was "Total pages" and now I'm looking for a solution to create one printable PDF for every page or a unique printable PDF with n pages (n = total pages). How to do this ?
Thanks in advance
Best regards
Gianfranco
Hi Shabir, I've not a pdf link. I generate it dynamically at run time with ADS.
Gianfranco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gianfranco,
If you have the link for Pdfs, based on number of pdfs to generate, you can put code similar to the one below inside respective numberOfPages Loop
String pdfLink = <Your Link>
FileInputStream fileIn = new FileInputStream(pdfLink);
int lastIndex = pdfLink.lastIndexOf(Constants.PATH_SEP);
String saveFileName = pdfLink.substring(lastIndex);
IWDResource resource = WDResourceFactory.createCachedResource(fileIn, saveFileName,WDWebResourceType.PDF,true);
String url = resource.getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal());
wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,saveFileName).show();
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi bello...
gothrough this documents... you may get an idea
http://help.sap.com/saphelp_nw70/helpdata/EN/c8/4adf7ba13c4ac1b4600d4df15f8b84/content.htm
http://help.sap.com/saphelp_nw70/helpdata/EN/46/1f0b9943f65874e10000000a11466f/frameset.htm
http://help.sap.com/saphelp_nw70/helpdata/EN/56/4c4e3c57f40a40e10000000a114084/frameset.htm
regards
Pradeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.