Skip to Content
avatar image
Former Member

Problem with PDF show

Hi

I have problem with show PDF file. I have tried with Adobe InteractiveForm in mode usePDF - that works but i can't close window with PDFView - when I close this window an browser error occurred. The second method which I have tried is the use of FileDownload element - that works but I must separatelly create PDF file and before that click the link (the filedownload element) - that displease me.

I am thankful

for any suggestion

Bogdan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    May 12, 2005 at 11:57 AM

    Hello,

    For showing a PDF file I would simply use an IFrame and give the filename as its source.

    greetings

    Walter

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Bogdan,

      1. Create the PDF file (eg. output.pdf) to some location in the server (eg: c:\bogdan\outputfiles)

      2. Create a HTTP alias(eg. bogdan) in the Visual Adminsitrator pointing to the file location (eg: c:\bogdan\outputfiles).

      3. Set the linkToURL reference property to http://<<servername>>:50000/bogdan/<<PDF file name>>

      For creating the HTTP alias refer to the blog "Creating an HTTP Alias in WAS"

      /people/renjith.andrews/blog/2005/03/31/creating-an-http-alias-in-was

      Hope this solves your problem. 😊

      Regards,

      Santhosh.C

  • avatar image
    Former Member
    May 13, 2005 at 07:32 AM

    Hi

    Thanks everybody for your help. The solution with iframe and file works, but i think, that is not good solution - communication between server and client via file. I think, I have found better solution:

    byte[] pdfContent={here document is created};
    IWDCachedWebResource pdfResource=WDWebResource.getWebResource
        (pdfContent,WDWebResourceType.PDF);
    wdComponentAPI.getWindowManager().createExternalWindow(
         pdfResource.getURL(),"Report View",true).open();

    no file needed und easy 😊

    once more thanks everybody

    Best regards

    Bogdan

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Bogdan,

      bingo, using the IWDCahcedWebResource-API (Web Dynpro Binary Cache) is really the best solution.

      A new Web Dynpro tutorial about exporting table data into Excel using the Web Dynpro Binary Cache service will be published on SDN very soon.

      Regards, Bertram