on 11-14-2007 9:45 PM
Hi experts,
Im having a hyperlink in my iview, once the user clicks on the link, a PDF document has to be displayed in a new window.
Im having my PDF in my DMS Server.
can u guys help me, which function module i have to use to develop a application so that PDF will be opened in a new window.
Thanks in advance.
James....
Hi Vasanth,
First convert data to byte[]. Then use the following code to open PDF
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.getMessage(), 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 James,
Try following code
WDPortalNavigation.navigateAbsolute(
"ROLES://portal_content/page/iview", WDPortalNavigationMode.SHOW_INPLACE,
WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
Userid);
Regards
Praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.