Producing a Paper Layout as output instead of Web Layout

Hello All,
I've developed a report in Reports 10g and saved it as a jsp file, having both paper & web layout. I've also designed a form in Oracle forms 10g with a list item displaying the list of all reports available. I've written the following piece of code to run the report selected.
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(200);
rep_status VARCHAR2(20);
rep_location varchar2(100);
pl_id paramlist;
d date;
DF VARCHAR2(10);
BEGIN
     IF(:rbg=1) then
          df:='pdf';
     else
          df:='htmlcss';
          end if;
repid := find_report_object(:REPORT_LIST);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,df);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_devserver');
     IF(:report_list NOT IN ('APTC_ANNUAL_RPT')) THEN      
          SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=YES P_USER_CONNECT=ADMIN/PINNET@PINNET                         P_SERVER_NAME=rep_devserver P_ACTION=http://pin-150:7778/reports/rwservlet?');
     v_rep := RUN_REPORT_OBJECT(repid);
     ELSE
          SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=NO P_USER_CONNECT=ADMIN/PINNET@PINNET                         P_SERVER_NAME=rep_devserver P_ACTION=http://pin-150:7778/reports/rwservlet?');
          v_rep := RUN_REPORT_OBJECT(repid);
     END IF;
     rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
     LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
/*Display report in the browser*/
     WEB.SHOW_DOCUMENT('http://pin-150:7778/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=rep_devserver','_blank');
ELSE
message('Error when running report');
END IF;
END;
Now after this piece of code gets executed I get to see a JSP report in Paper Layout format. But I want the Web Layout to be displayed. Can anyone please tell me what I've to do to get the desired output in Web Layout.
Reagards,
Arun.V

Hello Francois,
Thanks for the reply. As per my code "df" actually is a variale which stands for the format of the output, which is determined by the users selection(in this case a radio group) in the form. DF stands for either "pdf" or "htmlcss".
The following is the code I've used to determine the users preference which can be found within my original posting.
DECLARE
df varchar2(10);
BEGIN
IF(:rbg=1) then
df:='pdf';
ELSE
df:='htmlcss';
END IF;
END;
Kindly point out to me if there are any errors in the way I've written this code.
Thanks & Regards,
Arun.V

Similar Messages

  • Paper Layout displayed instead of Web Layout

    Hello All,
    I've developed a report in Reports 10g and saved it as a jsp file, having both paper & web layout. I've also designed a form in Oracle forms 10g with a list item displaying the list of all reports available. I've written the following piece of code to run the report selected.
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(200);
    rep_status VARCHAR2(20);
    rep_location varchar2(100);
    pl_id paramlist;
    d date;
    DF VARCHAR2(10);
    BEGIN
         IF(:rbg=1) then
              df:='pdf';
         else
              df:='htmlcss';
              end if;
    repid := find_report_object(:REPORT_LIST);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,df);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_devserver');
         IF(:report_list NOT IN ('APTC_ANNUAL_RPT')) THEN      
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=YES P_USER_CONNECT=ADMIN/PINNET@PINNET                         P_SERVER_NAME=rep_devserver P_ACTION=http://pin-150:7778/reports/rwservlet?');
         v_rep := RUN_REPORT_OBJECT(repid);
         ELSE
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=NO P_USER_CONNECT=ADMIN/PINNET@PINNET                         P_SERVER_NAME=rep_devserver P_ACTION=http://pin-150:7778/reports/rwservlet?');
              v_rep := RUN_REPORT_OBJECT(repid);
         END IF;
         rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
         LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /*Display report in the browser*/
         WEB.SHOW_DOCUMENT('http://pin-150:7778/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=rep_devserver','_blank');
    ELSE
    message('Error when running report');
    END IF;
    END;
    Now after this piece of code gets executed I get to see a JSP report in Paper Layout format. But I want the Web Layout to be displayed. Can anyone please tell me what I've to do to get the desired output in Web Layout.
    Reagards,
    Arun.V

    Hello Francois,
    Thanks for the reply. As per my code "df" actually is a variale which stands for the format of the output, which is determined by the users selection(in this case a radio group) in the form. DF stands for either "pdf" or "htmlcss".
    The following is the code I've used to determine the users preference which can be found within my original posting.
    DECLARE
    df varchar2(10);
    BEGIN
    IF(:rbg=1) then
    df:='pdf';
    ELSE
    df:='htmlcss';
    END IF;
    END;
    Kindly point out to me if there are any errors in the way I've written this code.
    Thanks & Regards,
    Arun.V

  • Displaying Report in Web layout

    Hello All,
    Can anyone please tell me how to display reports in web layout during runtime. I've created a report in month_report.jsp, having both Web Layout & Paper Layouts. At runtime when I call the report the Paper Layout version is getting displayed. Is there any extra parameter I've to pass.
    For Example if I give the following address
    http://host-110:7778/reports/rwservlet?&report=month_report.jsp&destype=cache&desformat=htmlcss&userid=admin/test@testing&p_month=JANUARY
    I get to see the Paper Layout version of the report. What I want is the Web layout. Is there any thing or any setting I've change in the Reports server. Kindly help me out on this.
    Regards,
    Arun.V

    Thanks Frank,
    No one seems to giving me a reply in the reports forums. They are hard to come by. Could you please direct me to some post which might be helpfull. I just want to know whether there's something wrong with the way I'm calling the report... May be thats the reason that I'm getting the Paper Layout as output instead of Web Layout.
    Regards,
    Arun.V

  • Create PDF output from Web Layout Report

    Is there a way I can create a PDF output from a Web Layout Report? (NOT from a Paper Layout). The reason I ask because editing on the .jsp Web Layout is very easy and flexible while editing on the Payer Layout is very difficult. Thanks.
    - Todd

    Hi Todd,
    Please refer to this link:
    paper layout & web layout
    As for your second statement, it is a matter of opinion and I beg to differ that .... "Web Layout is very easy and flexible while editing on the Payer Layout is very difficult."
    Best Regards,
    John

  • Deploying report in web layout.

    Hi Friends,
    I have developed a report throuhg report builder 9i for both web and paper layout. When I am running this paper layout mode the output format is appearing perfectly but in case of web layout not is appearing properly as well as item with VISIBLE property 'NO' is also appearing.
    Please give the solution bit details probably with eaxmple.
    Thanks in advance.
    Sanjeev

    Sanjeev,
    Paper and WebLayout are using different informations. For Paper Layout the "classical" Model with fields and frames and corresponding properties is used. For the Web Layout the WebSource (see in Object Navigator) is used. So changing a property in paper layout will not change the web layout (with the exception of using the include-tag in the web source, which references a frame with content from the paper layout).
    regards
    Rainer

  • Date format in the Web layout of Oracle 10g Reports

    Dear all,
    I want to change the date format in the oracle reports. I am using weblayout & paper layout. I have changed format mask using property inspector. It appears in paper layout. How can i get in the weblayout, please help me.
    With Regards,
    Srinivas

    Hi Srinivas,
    I think whatever applicable in Paper Layout should be applicable to Web Layout also.
    Regards,
    Raj

  • How to call the JSP(Web layout) instead of paper layout...

    Hi,
    Iam using Reports 10g. I have created a simple employees report. I have added a listbox in the jsp page by adding small Html and javascript code like below.
    <form action="http://www.wwt.com/reports/rwservlet?10000_reports_listing&p_extranet=p_extranet" name="First" method="post">
    <select name="p_extranet" onChange="First.submit()" >
    <rw:foreach id="RGSOURCE" src="G_SOURCE">
    <rw:getValue id="mysource" src="SOURCE"/>
    <option value=""><%= mysource %>
    </rw:foreach>
    </select>
    </form>
    When I run this report in the report builder as Web layout, Listbox is displayed with values inside.
    But when I move it to Apps server and run it through URL,
    listbox is disappeared. I think report is running the Paper layout instead of weblayout ??????????
    Could you please tell me what is the problem and How to force the Weblayout or JSP to run ?
    Thanks.

    Hi,
    You are running a jsp report through rwservlet. In this case paper layout will be displayed. You have to deploy your jsp as web report to get the web layout. Please refer to the doc below, which describes how to deploy the web report.
    http://download-uk.oracle.com/docs/html/B10314_01/pbr_run.htm#1011901
    To run the jsp report, URL may look like
    http://www.wwt.com/reports/<jsp name>?<parameter list>
    Hope this helps
    Vinayak

  • Which one is the Right Approach - Re Using Page Layouts or adding Web parts directly to pages instead of page layouts in SP 2013 online site ?

    Hi Team,
    I am SharePoint 2013 developer. Before asking question I would like to explain the requirement in clarity.
    We are developing one O365 SharePoint online site which is having 10 different page layouts with different and some common webparts and we are reusing these page layouts by deploying a sandboxed solution which is having page layouts. These page layouts contain
    filter and query to display data using some condition and predefined values. By using these layouts we have to create 100+ pages. All pages will show data according to that page name and category (if it belongs any). We have not written any code to develop
    the site, everything is OOB feature.
    We have used below feature/list/lib of SP Online 2013:
    - Document Library
    - Survey
    - Calendar
    - Lists
    - Discussion forum library
    - OOB Search feature
    Now, I would like to know whether this is the right approach to reuse the page layouts. Or can we add webparts directly where the logic resides in the webparts and add them to the pages instead of page layouts?
    Also how to deploy page layouts/pages from one server to another? Currently we are deploying everything as a feature using sandbox solution. 
    Could you please let me know the right approach to follow. I am asking this question because we are facing below issues:
    - Sometime page layouts gets corrupted, showing nothing.
    - All written filters/logic disappear when we open layouts in Designer
    - Deployment is pain using Sandbox solution
    Waiting for your reply.
    Thanks in Advance,
    Shifa Mittal

    Interesting question, to which i do not know a definitive answer.
    Output Caching is used to increase performance and to reduce load on the box. However since you're in the MS Cloud you don't need to worry about the latter and MS do the worrying about the former. I wouldn't be surprised if MS have updated the behaviour
    for O365 and not updated the documentation. That first office.com article is using 2010 screenshots which doesn't fill me with confidence about it's continuing relevance. Don't forget that SharePoint 2013 and O365 are technically different versions and have
    very different behaviour in places.
    Generally i'd say not to worry, but in this case if you do find any more information i'd love to see it.

  • Paper layout & web layout

    This might be a novice questin but still..
    With 9i reports, we are only going to deploy our reports to the web, and there are going to be no client server reports..
    In that context, the only layout we are going to be worried about is the web layout, I dont understant why there are two kinds of layouts i.e. PAPER LAYOUT AND WEB LAYOUT
    what is the difference between the two, when should we use the paper and web layout.

    Hi,
    There are 2 things here: the Q about deploying reports to the web, and the Q about paper and web layout. Let me explain each one.
    Q about paper and web layouts
    Paper layout is the layout you need to create "printable" reports. This layout is the same that you saw in 6i - with frames, repeating frames, fields, boilerplate objects and so on. This layout has the concept of a "page-wise" report. Once you create this layout (paper layout), you can get your report output in various formats, eg, PDF, RTF, HTML, HTMLCSS etc.
    On the other hand, web layout means that in place of (or in addition to) the paper layout, you get the report designed in JSP code. So all the frames, repeating frames etc will be expressed in JSP code using the Oracle Reports custom tags. Since it is code-based, you can insert your HTML or Java code in here to customize the output. You can in fact start with the HTML template, open it in reports builder, and start inserting the data using Reports custom JSP tags. In web layout, there are no "page breaks". So your report will be a JSP file, and can be deployed along with your J2EE application.
    Now the Q about deploying to the web.
    BOTH paper and web layouts are compatible with the web architecture. You will call a paper report from your browser with a command like:
    http://my_machine_name:port_number/reports/rwservlet?report=...server=...userid=...destype=...desformat=...
    And for accessing the web layout, you will deploy the JSP on a J2EE containser (like OC4J), and access it like:
    http://my_machine_name:port_number/application_context_root/My_jsp_report.JSP?server=...userid=...
    There is no destype, desformat or desname (because the output is only displayed on your browser).
    So using 9i Reports builder, if you want to save the report's paper layout ONLY, you save it as an RDF file. In case you want to store ONLY web or BOTH paper and web layouts, you save the report definition as JSP.
    get more information on Reports Getting Started
    http://otn.oracle.com/products/reports/htdocs/getstart/gettingstarted/anyformat/format.html
    Navneet.

  • Converting simple report output to PDF print layout issue

    Hi all,
    I am converted one report output to PDF format, it is working fine in one DEV sever, but when we moved it to other server the layout of output preview & font size  is not coming properly (as same in DEV server)  in the new server. I am using the below code, please check & correct me if anything is wrong.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
          EXPORTING
            copies                 = '1'
            cover_page             = space
            destination            = 'LOCL'
            expiration             = '1'
            immediately            = space
            mode                   = space
            new_list_id            = 'X'
            no_dialog              = 'X'
            user                   = sy-uname
            line_size              = 200
            line_count             = 65
    *        layout                 = 'Z_65_230'
            layout                 = 'X_58_170'
            sap_cover_page         = 'X'
          IMPORTING
            out_parameters         = mstr_print_parms
            valid                  = mc_valid
          EXCEPTIONS
            archive_info_not_found = 1
            invalid_print_params   = 2
            invalid_archive_params = 3
            OTHERS                 = 4.
        IF sy-subrc EQ 0.
    **--Creating Spool Request.
          CALL FUNCTION 'JOB_OPEN'
            EXPORTING
              jobname          = lv_job_name
            IMPORTING
              jobcount         = lv_job_count
            EXCEPTIONS
              cant_create_job  = 1
              invalid_job_data = 2
              jobname_missing  = 3
              OTHERS           = 4.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ELSE.
    **--Submitting the Report & Get the Output.
            SUBMIT  zpsr_submit_prcng WITH SELECTION-TABLE t_ebeln TO SAP-SPOOL WITHOUT SPOOL DYNPRO
                                  SPOOL PARAMETERS mstr_print_parms
                                  USER             sy-uname         " User for runtime authorizations
                                  VIA JOB          lv_job_name
                                  NUMBER           lv_job_count
                                  AND RETURN.
            IF sy-subrc <> 0.
              MESSAGE ID    sy-msgid TYPE sy-msgty NUMBER sy-msgno
                      WITH  sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            ELSE.
              CALL FUNCTION 'JOB_CLOSE'
                EXPORTING
                  jobcount         = lv_job_count
                  jobname          = lv_job_name
                  strtimmed        = 'X'
                IMPORTING
                  job_was_released = lv_job_released.
              IF sy-subrc <> 0.
                MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
              ENDIF.
    Thanks & Regards
    Avish
    Moderator Message: Please use code tags when pasting code snippets. Also paste relevant portions of the code
    Edited by: Suhas Saha on Jul 13, 2011 3:05 PM

    Dear Alexander,
    Thanks for the reply.
    In this I am using the FM 'CONVERT_ABAPSPOOLJOB_2_PDF'. I have checked the settings from SPAD that is also same in both servers for particular output device. But the patches are diffrennt in both the servers, the server from which layout is not coming properly having the high level patches in compare to the other server(which is working fine).

  • Printing Polish characters # output instead of "

    Hi all,
    Please can you assist.
    I have been setting up mutliple printers for the business in Poland. The printers are all operating fine apart from the fact they output # instead of ".
    All printers are using the recomended device type I2HP4, code page 1416.
    All the information i could find suggests that the # symbol is used when the correct character is missing from the code page. I have however checked code page 1416 and the " symboll does exist with sequence U+0022.
    In case its relevant the print method is U.
    Any ideas where the problem may be?
    Thanks
    Graham

    xmltype
    (<Model_ID><![CDATA[' ||'U252'||C.SEGMENT1||']]></Model_ID>')

  • How to use logger to send any output instead of the console?

    How to use logger to send any output instead of the console?

    How to use logger to send any output instead of the
    console?There are three commonly used logger inferfaces, the log4j, the java.util.loging and the Commons logging (which works with either.)
    You create a logger object, generally one for each class. Normally a private static variable points to it and it has a name equal to the FQN of the class.
    e.g.
    package org.widget;
    public class MyClass {
      private static   Logger log = Logger.getLogger("org.widget.MyClass");That's the java.uitil.Logger formula.
    Then there are method on the logger to call for various kinds of output. There' are different logging levels, priorities like SEVERE or DEBUG. When running the logs are configured to ignore messages of less than a set priority.
    You can also pass an Exception or Error to the logger which will log the stack trace.

  • Reports paper layout and web layout

    hi.
    i created a paper layout in reports but when i go to the web layout
    it is displayed entirely differently. how to get the same layout
    as that of paper layout in web layout...? the report is having
    four groupings..
    any idea ?
    thanks in adv.
    Kris

    You need to update Web Source.

  • Printer shows paper jamming in output bin but no paper visible in 2605dn

    printer shows paper jam in output bin---have reset and cleared everything---still shows same.  What now?

    In case you missed something, see this:
    http://h20564.www2.hp.com/hpsc/doc/public/display?​docId=emr_na-c00783950
    Try a NVRAM reset: (but make sure u save your n/w config 1st)
    1. power off the printer
    2. holding down the select and cancel buttons and powering on
    3. release buttons when display reads "permanent storage init"
    Please mark my post as SOLVED if it has resolved your problem. It helps others with similar situations.

  • Print multiples of the same image on one paper. I tried to change the layout to 9 per page, but it's only showing up and printing one per page, though it is the size i would like. But only one image is showing up as opposed to 9

    I'm trying to print multiples of the same image on one paper. I tried to change the layout to 9 per page, but it's only showing up and printing one per page, though it is the size i would like. But only one image is showing up as opposed to 9. HELP!!Version 7.0 (826.4)
    I'm using Preview Version 7

    Hello @kgingeri1, 
    Welcome to the HP forums.
    If you have sent a test print via ePrint, and experience this issue, i would call the Cloud Services department.
    If ePrint works fine, it is definitely a Google Cloud Print issue.
    Also, when you print from your android device, are you using Google Cloud print or the HP ePrint app?
    Please call our Cloud Services at 855-785-2777.
    If you live outside the US/Canada Region, please click the link below to get the support number for your region. http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
    Hours:
    Mon-Fri. 8am - 11pm, Sat. 9am-8pm - EST
    Mon-Fri. 7am - 10pm, Sat. 8am-7pm - CST
    Mon-Fri. 6am - 9pm, Sat. 7am-6pm - MST
    Mon-Fri. 5am - 8pm, Sat. 6am-5pm - PST
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

Maybe you are looking for

  • Is there a way to change iCal 4.0.4 alarm default settings?

    I'm pretty sure I've asked a version of this same question a before in this forum, but I don't recall what the answer is and I can't seem to find it either by looking in 'Your Stuff' Discussions; so, I'm asking it again. I'm also hoping Apple will fi

  • Bold text is blurry

    Here is an example of what my google "menubar" looks like: http://gyazo.com/c9ee92acb805bf6ede3b8fe0d975b6e6 Normal text is easy enough to read but any text in bold seems smudged. Is there any option that may or may not be selected to fix this? It's

  • I would like make 3D text and panel that controls the bevel is missing. How can I fix this?

    I was making 3D text, and when I went to create a new project, I had written out my text and made it 3D but the panel that controls the bevel wasn't available anymore. How can I make this panel visible?

  • CCX Engine status shutdown

    Hi in UCCX 8.5 Cisco Unified CCX Engine  is in shutdown status from CCX Serviceability. I added CM Telephony Call Control Group with 10 CTI ports. I can see CTI port in CUCM that are created, but their registration status keep state "unknown" I am us

  • I don't understand Muse page layout

    Hi all, In my Muse design, I have a colored header which is continuously at the perfect width of my page (also when I preview in my browser) When I insert a small picture underneath this header and place them at the exact same position (at top and le