Report displayed on PDF

I created a simlpe report. When I call it from the button in my form, I would like to have acrobat pop up and display it on the screen. So far, when the user clicks the button, my form creates the a pdf file with the report on it. But it does not open it. what am I missing here?
thanks everyone..

Try using CLIENT_HOST, WEB.SHOW_DOCUMENT procedures to open PDF.

Similar Messages

  • Report displayed in PDF format

    Can somebody point me in the right direction, I am producing a report from a table that uses the standard portal report creation capabilities and is displayed when selecting the link on the portal page. What I would like to do is when the report is displayed is to display it as a pdf document.
    Thanks
    Keith

    Hi,
    There is an destination format. This can be used for the output type. When you type here PDF a PDF document is generated.
    When you call a report from a form you can call the report with a parameter like this :
    SET_REPORT_OBJECT_PROPERTY( v_report_id
    , REPORT_DESNAME
    , <name of the pdf doc> )
    SET_REPORT_OBJECT_PROPERTY( v_report_id
    , REPORT_DESFORMAT
    , 'PDF' );
    succes!

  • Urgent: Issue while displaying the PDF Reports Using XDO Common region

    Hi all,
    In our product code we are trying to display the PDF Reports, using the xdo common region.
    Previously we were writing the pdf reports direclty onto the response direclty.
    This displays the report onto the browser but if navigate throw browser back button, it doesn't displays the report as the response stream is empty while navigating through back button.
    So to solve this issue, i tried to write the report using the OAHTMLWebBean and xdo common region. Here is the code:
    ByteArrayOutputStream xdoOutput = new ByteArrayOutputStream();
    XDOUtility.retrieveReport(xdoOutput,
    parameters,
    prop,
    appMod
    BlobDomain bxdoOutput = new BlobDomain();
    bxdoOutput.setBytes(xdoOutput.toByteArray());
    String redirectURL = DocumentHelper.getOutputURL(pageContext,
    bxdoOutput,
    "Report",
    "PDF");
    OAHTMLWebBean outRegion = (OAHTMLWebBean)createWebBean (pageContext, OAWebBeanConstants.HTML_WEB_BEAN, null, "IFRAME");
    outRegion.setHTMLAttributeValue("src", redirectURL);
    outRegion.setHTMLAttributeValue("width", "100%");
    outRegion.setHTMLAttributeValue("height", "100%");
    outRegion.setHTMLAttributeValue("title","Report");
    outRegion.setHTMLAttributeValue("name","Report");
    pageContext.getPageLayoutBean().addIndexedChild(outRegion);
    This successfully displays the report in the XDO Common region. But now the issue is that there are hyperlinks in the Report displayed where from where the user can navigate to other detail pages.
    When we click on these links, a new session starts in the xdo common region.
    Is it possible that when the user click the links in the report displayed, instead of starting a new session in the xdo region, the detail pages is displayed with in the older session.
    Regards
    Sandeep

    Hi all,
    In our product code we are trying to display the PDF Reports, using the xdo common region.
    Previously we were writing the pdf reports direclty onto the response direclty.
    This displays the report onto the browser but if navigate throw browser back button, it doesn't displays the report as the response stream is empty while navigating through back button.
    So to solve this issue, i tried to write the report using the OAHTMLWebBean and xdo common region. Here is the code:
    ByteArrayOutputStream xdoOutput = new ByteArrayOutputStream();
    XDOUtility.retrieveReport(xdoOutput,
    parameters,
    prop,
    appMod
    BlobDomain bxdoOutput = new BlobDomain();
    bxdoOutput.setBytes(xdoOutput.toByteArray());
    String redirectURL = DocumentHelper.getOutputURL(pageContext,
    bxdoOutput,
    "Report",
    "PDF");
    OAHTMLWebBean outRegion = (OAHTMLWebBean)createWebBean (pageContext, OAWebBeanConstants.HTML_WEB_BEAN, null, "IFRAME");
    outRegion.setHTMLAttributeValue("src", redirectURL);
    outRegion.setHTMLAttributeValue("width", "100%");
    outRegion.setHTMLAttributeValue("height", "100%");
    outRegion.setHTMLAttributeValue("title","Report");
    outRegion.setHTMLAttributeValue("name","Report");
    pageContext.getPageLayoutBean().addIndexedChild(outRegion);
    This successfully displays the report in the XDO Common region. But now the issue is that there are hyperlinks in the Report displayed where from where the user can navigate to other detail pages.
    When we click on these links, a new session starts in the xdo common region.
    Is it possible that when the user click the links in the report displayed, instead of starting a new session in the xdo region, the detail pages is displayed with in the older session.
    Regards
    Sandeep

  • Custom fonts not displayed when PDF is generated using 10g Report builder

    Hi
    I have two fonts , abc.ttf and def.ttf which I have placed under C:\Windows\fonts. One of these displays a logo and the other displays barcode
    I have added the environment variable REPORTS_PATH which has value C:\Windows\fonts. I have also added entries for PDF Subset in uifont.ali.
    But still when I run the report and out to a PDF file, the fonts are not displayed. They are remapped to some other fonts.
    When I check PDF document properties in Adobe reader, under fonts tab it says
    abc
       Type:Type1
       Encoding:ANSI
       Actual Font: Adobe Sans MM
       Actual Font Type : Type 1
    def
       Type:Type1
       Encoding:ANSI
       Actual Font: Adobe Sans MM
       Actual Font Type : Type 1
    uifont.ali entries
    [ PDF:Subset ]
    # This example shows how to subset Arial True Type font into the PDF file
    # Arial = "Arial.ttf"
    # The True Type font files must exist in any one of the folders specified in
    # REPORTS_PATH.
    abc= "abc.ttf"
    def="def.ttf"
    In Oracle reports builder, I am able see these fonts and select them in my report layout
    I am able to see the fonts in Preview/screen output while running RDFs in my reports builder, but PDF output doesnt display these fonts
    Is there anything else which is required to do ? Do I need to restart the machine after environment variable is added ?

    In one PC were Report Builder is installed, we see "COURIER NEW - WESTERN" font and the RDF created / saved in that font works fine on server. I don't know if this helps!

  • Trying to display a pdf exported report file in browser

    i am getting null pointer exceprtion when try to close the report browser.
    the same code is working perfectly in adobe reader 8. i am getting this problem adobe reader 9.
    i am exporting the report file as a pdf and saving locally. report is displayed in the browser from local directory.
    till its working fine. when close the report file.. i am getting the following error:
    java.lang.NullPointerException
            at org.eclipse.swt.ole.win32.OleClientSite.onPaint(OleClientSite.java:921)
            at org.eclipse.swt.ole.win32.OleClientSite.access$2(OleClientSite.java:906)
            at org.eclipse.swt.ole.win32.OleClientSite$1.handleEvent(OleClientSite.java:131)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
            at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1424)
            at org.eclipse.swt.widgets.Control.windowProc(Control.java:3842)
            at org.eclipse.swt.widgets.Display.windowProc(Display.java:4541)
            at org.eclipse.swt.internal.ole.win32.COM.CoFreeUnusedLibraries(Native Method)
            at org.eclipse.swt.ole.win32.OleClientSite.releaseObjectInterfaces(OleClientSite.java:1084)
            at org.eclipse.swt.ole.win32.OleControlSite.releaseObjectInterfaces(OleControlSite.java:683)
            at org.eclipse.swt.ole.win32.OleClientSite.onDispose(OleClientSite.java:852)
            at org.eclipse.swt.ole.win32.OleClientSite.access$1(OleClientSite.java:847)
            at org.eclipse.swt.ole.win32.OleClientSite$1.handleEvent(OleClientSite.java:128)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1008)
            at org.eclipse.swt.widgets.Widget.release(Widget.java:804)
            at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:755)
            at org.eclipse.swt.widgets.Widget.release(Widget.java:807)
            at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:755)
            at org.eclipse.swt.widgets.Widget.release(Widget.java:807)
            at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:755)
            at org.eclipse.swt.widgets.Canvas.releaseChildren(Canvas.java:174)
            at org.eclipse.swt.widgets.Decorations.releaseChildren(Decorations.java:771)
            at org.eclipse.swt.widgets.Shell.releaseChildren(Shell.java:1211)
            at org.eclipse.swt.widgets.Widget.release(Widget.java:807)
            at org.eclipse.swt.widgets.Widget.dispose(Widget.java:441)
            at org.eclipse.swt.widgets.Decorations.dispose(Decorations.java:446)
            at org.eclipse.swt.widgets.Shell.dispose(Shell.java:674)
            at org.eclipse.swt.widgets.Decorations.closeWidget(Decorations.java:308)
            at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.java:1643)
            at org.eclipse.swt.widgets.Control.windowProc(Control.java:3789)
            at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
            at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
            at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
            at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
            at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
            at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2366)
            at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:477)
            at org.eclipse.swt.widgets.Control.windowProc(Control.java:3877)
            at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
            at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
            at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
            at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
            at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
            at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2366)
            at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:477)
            at org.eclipse.swt.widgets.Control.windowProc(Control.java:3877)
            at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
            at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1576)
            at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937)
            at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
            at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
            at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2371)
            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3420)
            at com.siemens.med.cad.hqm.view.mainUI.HQMMainForm.buildMainShell(HQMMainForm.java:246)
            at com.siemens.med.cad.hqm.event.UserLoginEventHandler.loginDisplay(UserLoginEventHandler.java:240)
            at com.siemens.med.cad.hqm.event.UserLoginEventHandler.widgetSelected(UserLoginEventHandler.java:97)
            at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
            at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    this is my code:
    private void displayReport(String reportTitle) {
            // Shell to display the report
                Display display = Display.getDefault() ;
             Shell shell = new Shell(SWT.RESIZE //Display of the active Shell being used
                    | SWT.CLOSE | SWT.MIN | SWT.MAX | SWT.APPLICATION_MODAL);
            shell.setText(reportTitle);
            shell.setLayout(new FillLayout());
            shell.setMaximized(false);
            shell.setSize(800, 600);
            // Composite
            Composite comp = new Composite(shell, SWT.NONE);
            comp.setLayout(new FillLayout());
            // Browser
            final Browser browser = new Browser(comp, SWT.FLAT);
            // Setting the file to browser
            try {
                File file = new File(exportFile);
                URL url = file.toURL();
                browser.setUrl("file:" + url.getPath());
            } catch (MalformedURLException malURLEx) {
                // malURLEx.printStackTrace();
                throw new ProgrammingExceptionAdapter(malURLEx);
            // Add a dispose listener to the shell
            // and delete the temp file at dispose.
            shell.addDisposeListener(new DisposeListener() {
                public void widgetDisposed(DisposeEvent arg0) {
                    File file = new File(exportFile);
                    if (file != null && file.exists()) {
                        file.delete();
                    browser.dispose();            
            // Opening the file
            shell.open();
            shell.setFocus();

    I see no Crystal here.
    Sincerely,
    Ted Ueda

  • Hangs when calling report to be displayed in PDF format

    I am calling reports from a form using RUN_PRODUCT to be displayed in PDF format. Initially, there is no problem generating and displaying reports, but inevitably at some point when a report is run it just hangs. Rebooting the server temporarily fixes problem. Any ideas on what is happening?
    Using Forms & Reports Server 6i on Windows NT 4.0

    It seems that the key to the solution is to shrink the margins.....
    Greetings,
    Sim

  • Display report directly to PDF instead of when user selects that

    Hi, We have a requirement where we want to export report directly to PDF when user runs a report. We have a Java application where parameter screen for Crystal reports is displayed. When user clicks process button after selecting parameter then a new ReportViewer window appears. Right now after running report user selects export option to export to PDF. They want to open report directly to PDF instead of opening report / selecting export option.
    We have Crystal reports saved in BOXI R2 SP3 on IIS.  We are using .NET SDK to do this.
    Thanks,

    You can export and stream directly using RAS.
    [Sample|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b09a5013-9e3b-2c10-41af-85f08f91c895;jsessionid=(J2EE3417700)ID0302179550DB10992550101163851332End]

  • Display word/pdf document in the HTML region or report

    Hi,
    How to display blob content stored in a table in HTML region or report region.
    I already have a process to display the image content.
    But my question here is how to display word/pdf document within the html region so that the user can read the document without downloading it.
    Any suggestions/solutions would be of great help.
    Thanks in advance...
    Thanks,
    Ramesh P.

    I was dead wrong.
    The display of images from BLOB is a special case because APEX provides a Display Image item type.
    Moreover, HTP/HTF packages also do not provide for handling of BLOB content. So AJAX cannot be used.
    Which implies that the only way to get binary content, other than images, is with the use of a WPG_DOCLOAD.DOWNLOAD_FILE call.
    This in turn implies that it may not be feasible to "inject" the BLOB into an exist HTML DOM in the Browser.
    Regards,

  • Accents not displaying in pdf reports

    We are currently using Oracle Application Server 10G 10.1.2.0.2 (Oracle Forms and reports) and moving to 11g database with a AL32UTF8 character set.
    Our forms call the reports and generate them in pdf format. Our problem is that the accents are not being correctly displayed.
    Can anyone offer any suggestions that may help?
    Thanks so much.

    We are upgrading our database to 11g.
    The nls_lang is set AMERICAN_AMERICA.AL32UTF8. Accents are fine through the forms but reports are another story.
    Our servers are windows based (windows 2003 for the server). All of our reports are called from the forms and we use the in progress report and generated them as a pdf.
    The accents I'm testing are:
    ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÓÔÒÕÖâãäåæçèéêëìíîïñòóôõöùúûüýÿĀāĂ㥹ĆćĈĉċĊČčĎĒēĔĕĖėěĚĘęĜĝĞğĠġĢģĤĥĨĩĩĪīĬĭĴĶķŃńŇňŌōŎŏŐőŔŕŘřŚŜŝśŞşšŠŨũŪūŬŭŰűŹźŻżŽžǑǒǓǔǕǖ
    When I run a report through the report builder - everything displayed properly. If I run the same report as a pdf, then these accents are garbled.
    Is there something on the server I need to set?
    Thanks

  • Change width of fields displayed on PDF from ALV

    Hello,
    I have a requirement in which i have to print an alv report in a pdf , now in the report say there are 11 fields of which 5 are hidden , so when i print the report in pdf , in the pdf output the entire width of the page is not occupied but only the width of the displayed fields
    for eg. The 6 fields being displayed will cover only a part of the page..however i want the fields to occupy the entire page depending on the fields that are displayed .. plz advice how i can achieve this..

    Hi,
    <li>After converting to PDF, try to use SX_TABLE_LINE_WIDTH_CHANGE function module to change the width of the PDF.
         CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
             src_spoolid              = g_spool_no
             no_dialog                = ' '
           IMPORTING
             pdf_bytecount            = l_no_of_bytes
             pdf_spoolid              = l_pdf_spoolid
             btc_jobname              = l_jobname
             btc_jobcount             = l_jobcount
           TABLES
             pdf                      = i_pdf
           EXCEPTIONS
             err_no_abap_spooljob     = 1
             err_no_spooljob          = 2
             err_no_permission        = 3
             err_conv_not_possible    = 4
             err_bad_destdevice       = 5
             user_cancelled           = 6
             err_spoolerror           = 7
             err_temseerror           = 8
             err_btcjob_open_failed   = 9
             err_btcjob_submit_failed = 10
             err_btcjob_close_failed  = 11
             OTHERS                   = 12.
         CASE sy-subrc.
           WHEN 0.
           WHEN 1.
             MESSAGE s000(0k) WITH 'No ABAP Spool Job'.
             EXIT.
           WHEN 2.
             MESSAGE s000(0k) WITH 'Spool Number does not exist'.
             EXIT.
           WHEN 3.
             MESSAGE s000(0k) WITH 'No permission for spool'.
             EXIT.
           WHEN OTHERS.
             MESSAGE s000(0k)
                WITH 'Error in Function CONVERT_ABAPSPOOLJOB_2_PDF'.
             EXIT.
         ENDCASE.
         CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
           EXPORTING
             line_width_src              = 134
             line_width_dst              = 255
           TABLES
             content_in                  = i_pdf
             content_out                 = l_attachment
           EXCEPTIONS
             err_line_width_src_too_long = 1
             err_line_width_dst_too_long = 2
             err_conv_failed             = 3
             OTHERS                      = 4.
         IF sy-subrc NE 0.
           MESSAGE s000(0k) WITH 'Conversion Failed'.
           EXIT.
         ENDIF.
    Thanks
    Venkat.O

  • Report output as PDF Based

    Hi,
    I have a requirement where in I have to show the output of a custom report in PDF. I have specific layout in which the PDF has to be with header and item details. Can anyone suggest me if i have to go for Adobe forms for this...if yes, then how do i do it? or is there any other way i can show the output in specified PDF format.
    Regards
    Priya

    SET PF-STATUS 'Z_PDF'.
    *Table Declarations
    TABLES: MARA, MARC, MAKT.
    *Internal Table Declarations
    DATA: BEGIN OF TS_MARA OCCURS 0,
             MATNR LIKE MARA-MATNR,
             MTART LIKE MARA-MTART,
             MATKL LIKE MARA-MATKL,
             LVORM LIKE MARA-LVORM,
           END   OF TS_MARA.
    *Selection Screen Parameters
    SELECTION-SCREEN BEGIN OF BLOCK B1.
      SELECT-OPTIONS: S_MATNR FOR MARA-MATNR OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK B1.
    TOP-OF-PAGE.
    write: 40 'Generating PDF from List Output' color 1 intensified on.
      skip 1.
      write: /1 'Date        :',  SY-DATUM,
             /1 'User ID     :',  SY-UNAME,
             /1(112) SY-ULINE.
    START-OF-SELECTION.
    *Perform for Basic Selection
    PERFORM GET_MARA.
    *Perform to Display Data
    PERFORM DISPLAY_MARA.
    AT USER-COMMAND.
    *User Command to generate PDF Form
      AT USER-COMMAND.
      CASE SY-UCOMM.
        WHEN 'PDF'.
        DATA: L_PARAMS TYPE PRI_PARAMS,
                L_VALID TYPE STRING,
                W_SPOOL_NR LIKE TSP01-RQIDENT.
    *TO GET PRINT PARAMETERS
          CALL FUNCTION 'GET_PRINT_PARAMETERS'
            IMPORTING
              OUT_PARAMETERS = L_PARAMS
              VALID          = L_VALID.
          IF SY-SUBRC <> 0.
          ENDIF.
    *Internal table for Selection Screen
    DATA: BEGIN OF I_RSPARAMS OCCURS 0.
           INCLUDE STRUCTURE RSPARAMS.
    DATA: END OF I_RSPARAMS.
    *Store the current selection screen details
    CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
      EXPORTING
        CURR_REPORT           = SY-REPID
    *IMPORTING
    *   SP                    =
      TABLES
        SELECTION_TABLE       = I_RSPARAMS
    EXCEPTIONS
       NOT_FOUND             = 1
       NO_REPORT             = 2
       OTHERS                = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *SUBMIT TO GET THE SPOOL NUMBER
    SUBMIT ZSB_TEST_08 WITH SELECTION-TABLE I_RSPARAMS
                                 TO SAP-SPOOL
                                 SPOOL PARAMETERS L_PARAMS
                                 WITHOUT SPOOL DYNPRO
                                 AND RETURN.
    *SELECT THE RECENTLY CREATED SPOOL
          SELECT MAX( RQIDENT ) INTO W_SPOOL_NR FROM TSP01
                                     WHERE RQCLIENT = SY-MANDT
                                     AND   RQOWNER  = SY-UNAME.
    *REPORT TO GENERATE SPOOL NUMBER FOR PDF CONVERT
          SUBMIT RSTXPDF5 WITH SPOOLNO  = W_SPOOL_NR
                          WITH DSTDEVIC = 'LOCL' AND RETURN .
          IF SY-SUBRC EQ 0.
            CLEAR W_SPOOL_NR.
    *SELECT THE RECENTLY CREATED SPOOL FOR PDF
            SELECT MAX( RQIDENT ) INTO W_SPOOL_NR FROM TSP01
                                       WHERE RQCLIENT = SY-MANDT
                                       AND   RQOWNER  = SY-UNAME.
    *REPORT TO DOWNLOAD PDF SPOOL TO GUI
            SUBMIT RSTXPDFT5 WITH SPOOLID = W_SPOOL_NR
                             AND RETURN.
          ENDIF.
      ENDCASE.
    *&      Form  GET_MARA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM GET_MARA .
    CLEAR  : TS_MARA.
    REFRESH: TS_MARA.
    *To select Materials based on Selection Criteria
    SELECT MATNR
           MTART
           MATKL
           LVORM
      FROM mara
      INTO CORRESPONDING FIELDS OF TABLE TS_MARA
      WHERE MATNR IN S_MATNR.
    ENDFORM.                    " GET_MARA
    *&      Form  DISPLAY_MARA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM DISPLAY_MARA .
    CLEAR  : TS_MARA.
    WRITE: /1   '|', 2(18)  'Material Number' COLOR 7,
             28  '|', 29(13) 'Material Type  ' COLOR 7,
             42  '|', 43(14) 'Material Group ' COLOR 7,
             57  '|', 58(13) 'Deletion Flag  ' COLOR 7,
             112 '|'.
    WRITE: /1(112) SY-ULINE.
    LOOP AT TS_MARA.
      WRITE: /1   '|', 2(18)   TS_MARA-MATNR,
              28  '|', 29(13)  TS_MARA-MTART,
              42  '|', 43(14)  TS_MARA-MATKL,
              57  '|', 58(13)  TS_MARA-LVORM,
              112 '|'.
    WRITE: /1(112) SY-ULINE.
    ENDLOOP.
    ENDFORM.                    " DISPLAY_MARA

  • How do you Display a PDF stored as a BLOB in Apex?

    We are trying to use Apex for the first time here in our shop. The project we have selected has PDFs stored on the database as BLOBS that we currently are able to display with our forms application. We want to do this using apex, and have them appear on one of the pages in the application. I want the PDF to display on the page, when the page itself is invoked, without the need to click on a download link on the page itself.
    I've seen certain examples displaying images etc, but I haven't found one that specifically refers to the display of a PDF database BLOB on a page (I assuming a report page) within Apex.
    Also, since I've just set up the Apex environment utilizing Oracle HTTP Server in the middle tier, do I need Oracle's BI Publisher in order to display the PDFs in Apex?
    Thanks in advance. Any advice or links would be much appreciated.
    Phil

    Thanks for the quick response, and you are correct. I've seen examples that include a link to specifically display the PDF, but I don't want them to be able to directly go to the PDF outside the context of the page itself. These are letters of recommendation that we store on our DB, and this application, for our med school admissions screeners, will be looking at up to three letters of recommendation for each applicant to which they have been assigned. We want them to click on an applicant, and then through a series of tabs view data on that applicant, some of which will be his/her letters of recommendation.
    Phil

  • Font problem in reports produced in PDF format

    Dear all,
    All our reports are developed by developer suite 10g (under windows) and deployed on an Application Server 10g (on Linux).
    We had a problem with displaying the arabic letters, but this was solved by following the steps in the metalink Note no 726205.1 for generating arabic pdf reports on unix.
    Now, the problem is that the font used in the reports is ARIAL, but when the reports are displayed (in PDF format) the font is TAHOMA. This font conversion happens in both Arabic and English reports !
    I wonder how can I correct this behaviour.
    Thanks in advance for your time.
    Naglaa

    Steve,
    I remember that fonts in PDF generated by Oracle Reports is a big topic and a subject of many Metalink notes (metalink.oracle.com).
    Note.210318.1 Ext/Pub How To use font embedding in Reports 9i for PDF output
    Note.207711.1 Ext/Pub How to Use Font Subsetting in Reports 9i for PDF Output
    Note 232975.1 "Windows/Unix Font Issues: What Information is Required to address the Issue and How to Work Around Issue"
    Especially on Unix and Linux systems, there are some font mapping required. I suggest to run this question on the Reports forum here on OTN where I think you have better chances for an answer.
    Frank

  • Preview.app will not display some PDF files

    Since upgrading Yosemite I have found that Preview.app will not display some PDF documents, the documents open but all the pages are blank. This is a big issue as my work involves reviewing documents that are all in the PDF format. Strangely some PDFs work properly but I haven't been able to determine any common factors among the documents that work versus those that don't work. The problem documents do open correctly in Adobe Acrobat Reader but Reader takes over viewing of PDF container fields I have in several important FileMaker Pro 13 databases. Acrobat in the FileMaker databases for me is just as much of a problem as not viewing PDFs in Preview.
    After searching the forums I followed suggestion in a post to try using version 7.0 of Preview.app (the version that worked under Mavericks) but that is also showing blank pages. I have noticed that the PDFs which open as blank pages also display that way in Finder and Spotlight previews. Could this mean that I have some kind of OS level issue here and not a Preview.app issue? Perhaps Finder and Spotlight use Preview.app to generate the preview.
    I have posted this in a bug report to Apple but in the meantime I would welcome any suggestions or workarounds to try.

    The built-in PDF renderer has trouble with that file. You might get better results with Adobe Reader.

  • Can I display a PDF stored in a table on a standard screen

    I have a requirement to allow a user to be able to review a returned Adobe Interactive Form before approving the form to be process and posted to FI.
    I am looking to save the returned form in a ztable and then later display the form on a screen with buttons to approve or reject.
    Is this possible without using a web dynpro?
    Every solution I track down seems to fill 80% of my needs.
    Suggestions?

    I don't know if it will meet your requirement or not, but you can use the HTML control to display a PDF document (the Adobe plug in should happen automagically for you) - then you could have additional buttons on that screen for the actions to be performed.
    To try it out, run report SAPHTML_DEMO1 (or go in via the Tcode DWDM Controls Demo) and simply paste in the directory and file name to be displayed e.g. "c:\data\demo_po.pdf" or whatever your PDF is called.
    Jonathan

Maybe you are looking for