Skip to Content
author's profile photo Former Member
Former Member

Display of a PDF file

Hi

I have an application in which click of link opens a PDF File in same window. So I want to display PDF file in a View. For this I want to use a PAR file,in which i keep my PDF file in one of the folders under PORTAL-INF. and then on click of link i'm able to open the PDF file in the same window.

Can some body tell me how to go about this.

or somebody can tell me better approach to this.

Thanks in advance

Srikant

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 03, 2005 at 05:17 AM

    Hi DV,

    Its better to use KM as the repository for the pdf files. If u use KM there is no need for creating a projetc and all.

    SAP provides KM Documnets iview. Only thing u have to give is path of the document in the KM as one of the iview property.

    http://help.sap.com/saphelp_nw04/helpdata/en/fc/cf14bcd42911d5994400508b6b8b11/frameset.htm

    Refer to this link for more deatils abt KM Documnets iview

    Hope this Helps

    gEorgE

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 03, 2005 at 08:37 AM

    When you have a file inside the par-file (not inside the PORTAL-INF directory), then the url to this file is http://portal:50000/irj/portalapps/par-file-name/filename

    Example:

    com.test.par contains /test/testfile.txt

    then url is http://portal:50000/irj/portalapps/com.test/test/testfile.txt

    In SAP Developer studio project, these files are located in the /dist direcotry in the project.

    If you want to have the file in the PORTAL-INF directory, you can code portal component, which returns the file as content.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Samuel

      I don't want to hard code the value and file name, I want to include it in PORTAL-INF directory, Can u tell me what we have to code which returns file as content . can you please elaborate on this.

      Thanks in advance

      Srikant

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.