on 11-10-2005 9:58 AM
Hi Friends,
We need to show the PDF on a external window. We get the PDF content from ABAP in byte[] format. Infact we are able to get the this done using the FileDownload Control, where we are able to open the PDF, save with perfect content.
BUT problem is with the scenario where we dont want the file download dialog, simply popup should open and the pdf should be shown.
Somehow from the forums we got the code and implemented the same, BUT the problem is we are able to get popup external window but its BLANK., i mean we are not getting the PDF.. not even ADOBE ACROBAT is loading.
Please help!!! We are struggling from past 3 days...!!! Your help would be valuable...!!!
<i><b>try {
IWDWebResource pdfResource=WDWebResource.getWebResource(
wdContext.currentContextElement().getFilesource_1(),
WDWebResourceType.PDF
);
wdComponentAPI.getWindowManager().createExternalWindow(pdfResource.getURL(),"receipt view",true).open();
} catch (WDURLException e) {
msgmgr.reportException(e.getMessage(),true);
}</b></i>
Thanks,
Raghavendra P
This is how i got solution...
<i><b> try {
String key = "order-receipt-999";
IWDCachedWebResource pdfResource = WDWebResource.getPublicCachedWebResource(
wdContext.currentContextElement().getFilesource_1(),
WDWebResourceType.PDF,
WDScopeType.CLIENTSESSION_SCOPE,
wdThis.wdGetAPI().getComponent().getDeployableObjectPart(),
key);
wdComponentAPI.getWindowManager().createExternalWindow(pdfResource.getURL(), "my window name", false).open();
} catch (WDURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}</b></i>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.