Skip to Content

unable to view PDF files -application server class CL_GUI_PDFVIEWER->open_d

Hi

I have PDF files in application server and trying to display the PDF files by using class CL_GUI_PDFVIEWER->open_document but i am unable to view the pdf files.

Please let us know any other alternative way to view the PDF files via application server.

Regards

G

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 14, 2011 at 11:13 AM

    Hi,

    steps tu visualize PDF files from app server via html_viewer:

    1. Upload PDF file to table type x255. (using for ecampo FM SCMS_UPLOAD)

    2. Create container (TYPE REF TO cl_gui_custom_container),

    create html_viewer (TYPE REF TO cl_gui_html_viewer).

    3. Load data from ypur xsting table to url:

      CALL METHOD html_viewer->load_data
        EXPORTING
          TYPE                = 'application' 
          SUBTYPE           = 'pdf' 
         IMPORTING
           assigned_url     = url
        CHANGING
          data_table          =  data_pdf.  "line type x255
    

    4. Show data from url:

      CALL METHOD html_viewer->show_data
        EXPORTING
          url                    = url.
    

    Regards,

    MaryM

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 14, 2011 at 01:59 PM

    That class is clearly marked 'Do not use'. Along with MaryM's suggestion, search the forum. This has been asked/answered before. You'll find other threads referring to the use of the HTML/custom container for viewing PDF's, not to mention using Adobe Reader directly...

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.