on 08-27-2007 5:15 PM
Hi,
We are using NW04s SP10 . I need to show the data coming from RFC as PDF in Web Dynpro. The RFC is returning String as output after SAP Script is converted to PDF . Below is the code i have written in WD for opening as PDF. When i try to open it as PDF, I am getting message in acrobat reader "<i>The file is damaged and could not be repaired</i>" . Did anyone faced the similar problem before?
//Converting the string to binary
b = wdContext.nodeOutput().nodeBinary_File().getBinary_FileElementAt(i).getBin_File().getBytes();
pdfResource=WDWebResource.getPublicCachedWebResource(b,WDWebResourceType.PDF,WDScopeType.CLIENTSESSION_SCOPE,wdThis.wdGetAPI().getComponent().getDeployableObjectPart(),"Test"+i);
pdfResource.setResourceName("test.pdf");
wdComponentAPI.getWindowManager().createExternalWindow(pdfResource.getURL(),"Test"+i,false).open();
Thanks,
Vasu
Hi all,
I am able to solve myself. The problem is with the generated data. Now i am able to see the PDF but i am facing issue in showing the data in pdf which i have posted in another thread.
Thanks,
Vasu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.