on 12-03-2008 9:21 AM
Hello experts,
I want to implement a view which displays a pdf in a I frame. Based on the location the source of the pdf file is different. For example a user which is based at england should see a differnet pdf like a employee from germany. I think the best way to implement such logik would be to use WDWebResourceType.pdf type. Any ideas how to implement such logic???
Many thanks
Marco
hi i think you can use the following code.
get the user name and location according to the location read the pdf file .
byte[] PDFFormContent =getthe pdf form into byte format.
IWDCachedWebResource PDFFormResource = WDWebResource.getWebResource(pdfContent,WDWebResourceType.PDF);/create a resource in the server using this code./
try
{
//Access the url of that resource
wdContext.currentContextElement.setPdfData(PDFFormResource.getURL());
}
catch(Exception e)
{
wdComponentAPI.getMessageManager().reportException(e.getMessage(),true);
}
Build and run the application.
Thanks and Regards
shanto aloor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.