Directly print out a report

I make a form and a report.I try to directly print out it.but before the result print out,a html coding print out. How to print only the result of the report?
The below is the procedure in the Form.
PROCEDURE sendparam1 IS
     report_id                              Report_Object := FIND_REPORT_OBJECT('SHSEL_DAILY_FUNCTION');
     report_server_name     varchar2(100) := 'repfodbopera';     --Report Server Name (repseokyooperawebopera/repfodbopera)
     report_format                    varchar2(20)     := 'PDF';                              --Report Type
     report_destype_name     number                    := PRINTER;
     report_file_name          varchar2(100)     := 'SHSEL_DAILY_FUNCTION';     --Report File Name
     report_otherparam          varchar2(2000):= 'paramform=yes';     
     report_servlet               varchar2(100)     := '/reports/rwservlet';
     report_folder                    varchar2(100)     := 'M:\micros\opera\production\runtimes\';     --Real Report File folder(http://fodb/webtemp/opera/)
     pdf_folder                    varchar2(100)     := 'M:\micros\opera\operaias\webtemp\opera\';     --Real Report File folder(http://fodb/webtemp/opera/)
     report_message               varchar2(100)     := '';
     rep_status                         varchar2(100)     := '';
     vjob_id                                   varchar2(4000):= '';
     hidden_action                    varchar2(2000):= '';
     v_report_other               varchar2(4000):= '';
     report_user                         varchar2(100)     := 'OPERA/OPERA@OPERA';     --Opera DB
     resort                                   varchar2(20)     := 'SHSEL';                    --SEOKYO               
     PMS_ID                                   varchar2(20)     := 'OPERAREP';
     PMS_PW                                   varchar2(20)     := 'OPERAREP';
     v_time varchar2(10) :='';
     v_pdf_name varchar2(200):='';
Begin
     --message(to_char(sysdate,'mmddhhmiss'));
     v_time:=to_char(sysdate,'mmddhhmiss');
     v_pdf_name:=report_file_name||     v_time||'.PDF';
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_EXECUTION_MODE,BATCH);
-- SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
     SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
     SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,report_folder || report_file_name);
     SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,report_server_name);
     SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,report_destype_name);
     SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,report_format);
     --SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESNAME,report_folder ||report_file_name||     v_time||'.PDF');
     SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESNAME,'OfficePrt'); --프린터 이름
     hidden_action := hidden_action || '&report=' || GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME);
     hidden_action := hidden_action || '&destype=' || GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE);
     hidden_action := hidden_action || '&desformat=' || GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT);
     hidden_action := hidden_action || '&userid=' || report_user;
     hidden_action := hidden_action || '&desname=' || GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESNAME);
     v_report_other := v_report_other || 'P_REPORT_DATE=' || :TXTREPORTDATE;
     v_report_other := v_report_other || '&P_END_DATE=' || :TXTREPORTDATE;
     v_report_other := v_report_other || '&P_RESORT=' || resort;
     v_report_other := v_report_other || '&P_USER=' || PMS_ID;
     v_report_other := v_report_other || '&P_PASSWORD=' || PMS_PW;
     v_report_other := v_report_other || '&P_REPORT_NAME=' ||report_file_name;
     v_report_other := v_report_other || '&P_BUSINESS_DATE=' || :TXTREPORTDATE;
     hidden_action := hidden_action || '&' || v_report_other;
     hidden_action := report_servlet || '?_hidden_server=' || report_server_name || hidden_action;
     SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'pfaction=' || hidden_action || ' ' || report_otherparam);
     report_message := run_report_object(report_id);
     rep_status := report_object_status(report_message);
While Rep_Status In ('RUNNING','OPENING_REPORT','ENQUEUED') Loop
Rep_Status := Report_Object_Status(report_message);
message('status : '||Rep_Status);
End Loop;
     if rep_status = 'FINISHED' then
          --message(rep_status);
          vjob_id := substr(report_message,length(report_server_name)+2, length(report_message));
          Web.Show_Document(hidden_action,' _blank');
          --Web.Show_Document('../../webtemp/opera/'||v_pdf_name,' _blank');
          --Web.Show_Document(report_servlet || '/getjobid' || vjob_id || '?server=' || report_server_name, ' _blank');
     else
          message('Error');
     end if;
end;

I can print out the report but the html page as the below is printed before the report.
Why is the html page printed ? and I don't want to print out the html page.
<html>
<body dir=LTR bgcolor="#ffffff">
<form method="hidden_run_parameters" type=hidden value="server=repfoopera&rep......
Message was edited by:
asterika

Similar Messages

  • Direct Print a webi report, from InfoView

    Hi,
    I want to direct print a webi report after I open it with InfoView, but i don't know if it's possible.
    Right now, when I open a webi report in InfoView I have a button saying "Print to PDF", which will open that report as a PDF document.
    But I want to print directly to a printer and not to open the report in a pdf viewer.
    Is there a way to have a direct print button in InfoView for webi documents ?
    Thank you.
    Eugen
    Edited by: eudor2000 on Jun 3, 2010 7:49 PM
    Edited by: eudor2000 on Jun 3, 2010 7:49 PM

    Hi Eugen,
    At this point it is not possible.
    Here is SAP Notes which clearly state that SAP BOJ is aware of it and got several enhancement request and these requests are reviewed every six months. Since these requests require major changes in the software, SAP BOBJ has not given any time frame of availability of this feature.
    Here is SAP NOTE: 1345933
    [https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3133343539333326]
    Regards,
    Bashir Awan

  • Print out of report

    hi experts ,,,,
      1)...i am taking the print out of report.
      i given the horizantal and vertical lines......
    i did not want them in output(lines)....
    how can i do this, any option is available.
    2) how to delete the leading zeroes...
      i jave number like this 00000876. i need only 876.
    how can i get it. any command u can suggest me..
    thanks in advance.
    Message was edited by:
            dasr r

    hi,
    U can either use this function module also
    CONVERSION_EXIT_ALPHA_OUTPUT
    or
    SHIFT <yourField> LEFT DELETING LEADING '0'
    or
    try NO-ZERO option of WRITE statement
    or
    Another way is to create another variable of type I and assign the value into it
    example:
    DATA: L_NUMC(08) TYPE N.
    DATA: L_INT TYPE I.
    L_NUMC = '00000018'.
    L_INT = L_NUMC.
    Result will be = 18.
    Hope this helps
    regards.

  • Direct print out with parameter values dialog

    Post Author: lp75
    CA Forum: .NET
    Is it possible to get a parameter dialog on a direct print out ?reportDocument."Show a dialog similar to that one in CrystalReportViewer"reportDocument.PrintToPrinter(...);

    Post Author: ole
    CA Forum: .NET
    reportDocument."Show a dialog similar to that one in CrystalReportViewer" is not possible, because ReportDocument has no user interface at all. You have to look in namespace CrystalDecisions.Windows.Forms. There are things like CrystalDecisions.Windows.Forms.PromptingDialog. There are also some other dialogs.  I don´t, if that will work. Maybe it is a help. Please inform if you are successful. I think I will need it some day, too.  

  • User print out the report of Tcode-fc10 the printing is 7-8 times repeated

    Hi,
    User print out the report of Tcode-fc10 the printing is 7-8 times repeated.printer is SL00004 Korea.What can I do? so that user  gets only  one copy .Is there any setting .User is getting this issue only when they print out the report of T-code(fc10) only.
    Moderator message: no evident relation to ABAP development.
    Edited by: Thomas Zloch on Jan 18, 2011 3:09 PM

    I suspect you may be using ActiveX print control(?). If that is the case, look at permission issues.
    1) If you run the app on the server it's self, are you able to print from there?
    2) If you log in as an admin on the server, can you print?
    3) If you log in as an admin on the a workstation, can you print?
    Process Monitor will be a good utility to use to check permission issues. Process Monitor is here:
    http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx
    Ludek

  • How to print out multilingual reports from the main report using Xliff temp

    Hi all,
    How to print out multilingual reports from the main report using Xliff temp?
    When I want main report call subtemplate and finish xliff tranlation
    <?for-each@section:INVOICE?><?end for-each?>
    <?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
    <?start:body?><?call:Header?><?call:Line?><?call:Weights?><?call:Banks?><?end body?><?call:Footer?>
    Prints out fine with Finnish translation
    But if I want in main program to check what language is used e.g.
    if trx_number = 142 call Finnish translation and if trx_number =144,
    call English translation.
    <?for-each@section:INVOICE?><?end for-each?>
    <?if:TRX_NUMBER=’142’?>
    <?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
    <?start:body?><?call:Header?><?call:Line?><?call:Weights?><?call:Banks?><?end body?><?call:Footer?>
    <?end if?>
    <?if: TRX_NUMBER=’144’?>
    <?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.US/?>
    <?start:body?><?call:Header?><?call:Line?><?call:Weights?><?call:Banks?><?end body?><?call:Footer?>
    <?end if?>
    Prints out always in English and never the Finnish translation.
    Program goes fine to if branch but does not print out Finnish
    Does anybody know what could be wrong?
    BR
    Kari

    Thanks Amit,
    I have two layout, main-layout and sub-layout
    Main layout call subtemplate
    I have registered layout and xliff-file
    Main template
    Localized Templates
    File Name           Language Territory
    XXNS_INVOICE_MAIN.rtf      English
    SUB template
    Localized Templates
    File Name           Language Territory
    XXNS_INVOICE_SUB.rtf      English
    Translatable Template
    File Name           Language      Territory
    XXNS_INVOICE_SUB.rtf      English      United States
    Available Translations
    Language Territory Progress
    English Finland Complete
    If main report call subtemplate and finish xliff tranlation
    <?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
    Prints out fine with Finnish translation
    But if I want in main program to check what language is used e.g.
    if....
    <?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
    .....end if;
    if....
    <?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.US/?>
    .....end if;
    Prints out always in English and never the Finnish translation.
    Program goes fine to if branch but does not print out Finnish
    Do you it's set up problem or program problem
    BR
    Kari

  • Printing out a report in PDF format

    Hi,
    A colleague and myself have been converting an existing system for our customer from the traditional client/server architecture to a web-deployed system on 10g application server. I have been converting the reports from report 3.5 to reports 10g. The reports work fine but the problem we have is more to do with the printer than the reports itself.
    We have a requirement to print a barcode label (and some other text) to a DataMax printer. This printer seems to be quite fussy about the fonts that are used and essentially if you don't use the DataMax fonts the label comes out blank. I have managed however to produce reports as PDF and if I click the Printer button in the adobe control the report will print out as a bitmap image on the printer.
    Is there any way that I can produce the report as a PDF file and get it to print automatically ?

    Prohan,
    I have never been able to get PDF generation working from APEX. I have asked for some help on this forum, but go no responses. And I just won't spend the outrageous license fees for Oracle BI Publisher. But I have been successful in doing what need with some simple methods.
    1. If the email has some simple tables or formatted information from the database, use a PL/SQL procedure to generate an HTML formatted message and the utl_mail package to send the html formatted email. I use this for many customer and internal emails from both APEX and Oracle Forms applications.
    2 There is a stand-alone product PL/PDF (http://www.plpdf.com/) that allows you to generate PDF files directly from PL/SQL (again not APEX specific). I have demoed this product and it works pretty well, but I am not using it at this time because of the licensing that requires a fee for each database instance. It's not really that expensive, but it's more than I want to spend for the number of databases I have.
    3. If you have Acrobat Professional, you can export XML file from the database and create "mail merge" type PDF documents. But you can also do this with Word and a simple CSV or Excel output. Both of these are pretty easy from APEX. I have used both. I found the Work mail merge to be a little easier for end users to use, so this is my primary choice. But Acrobat Pro method also works well.
    If you are interested in any examples of these methods, let me know and I can send you something.
    Bill
    Bill

  • Print out of Report Region dropping negative values

    I am very new to APEX (< 2 months) and don't have much of a programming background. I have created a report layout using BI publisher and made it available as a shared component in my APEX applicaiton. When I print the the report region, most of the data displays fine on the print out, but any amounts with negative values are suppressed. I can view the negative amounts just fine when they are displayed on the report region itself.
    It took me quite a while to get the style sheets from BI Publisher to work with APEX. I thought the two were supposed to be compatible. Does anyone know how to resolve the issue above or if their are any known compatability issues between BI Publisher and APEX? We are on APEX version 4.2.1.00.08 and BI Publisher version 11.1.1.

    This was indeed a bug. Response from Oracle:
    This issue has been noted by development as a bug and I have file bug 16224878 regarding your issue. The issue explained by development pertains numeric format string which wraps the negative value in angle brackets: < val > , and the report is treating this as a HTML tag and filters it out. It looks like this is happening only for classic report regions, i.e. report queries seems to support this type of numeric format mask.
    A work around would be to turn off printing for the classic report region and to provide a button to a report query for printing, using the same SQL for the report query as is used for the report region. Alternatively you could also use a different format mask.

  • Can i take print out of report

    hi
       my report has line-size 205 czn i take print out of OUTPUT of this on A4 sheet on landscape.
         my second question is : - - what CIZ refer in SAP script i have seen it like
                                                <b> &J_1IEXCHDR-EXBED(CIZ)& ,</b>  , i think it use to truncate leading space.

    1) yes, you can take print out on A4 paper in landscape format.
    2) There are formatting options...
        C-->  Space compression
        I -->  Surpress output initial value
       Ex: &value&   --> 0.00
             &value(I)  -->  empty space
       Z --> for omitting leading Zero
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • I have a 4630e and I want to print out the report of my paper useage for the month.

    I have a 4630, 3-in-one. I'm in the automatic refill program.  I want to get to and print the report of useage for the month to see if I can reduce the among of pap I have allotted myself.
    This question was solved.
    View Solution.

    Hi Georgiapat465, welcome to the HP Forums. If you want the Month To Date statistics of your Instant Ink usage, you can log into your account on hpconnected.com and go to the services tab, and then find Instant Ink there. That page will show you on screen your usage.
    I hope this helps. Let me know if you have any other concerns.
    TwoPointOh
    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 bottom to say “Thanks” for helping!

  • HT204088 how do i print out a report of my individual purchases?

    How do I print a report (not just view it on screen) of the individual purchases made on my itunes account?

    There is no way to print a report of your purchases. All you can do is view your purchase history and take a screen shot of each screen and print the screen shots.
    Regards.

  • Printing out a report in Apex

    I am building an Apex application that requires that a letter be sent to clients. The data in this letter will consist of a combination of boilerplate text merged with data from the database. Can somebody tell me how to do this in APEX?
    I have been told that there may be a PL/SQL package that allows one to create a PDF document that can be displayed on the browser and then printed. If this is true, can somebody give me the details of where to find it and how to use it?
    Or, if there is a better method, please tell me.
    Thanks.

    Prohan,
    I have never been able to get PDF generation working from APEX. I have asked for some help on this forum, but go no responses. And I just won't spend the outrageous license fees for Oracle BI Publisher. But I have been successful in doing what need with some simple methods.
    1. If the email has some simple tables or formatted information from the database, use a PL/SQL procedure to generate an HTML formatted message and the utl_mail package to send the html formatted email. I use this for many customer and internal emails from both APEX and Oracle Forms applications.
    2 There is a stand-alone product PL/PDF (http://www.plpdf.com/) that allows you to generate PDF files directly from PL/SQL (again not APEX specific). I have demoed this product and it works pretty well, but I am not using it at this time because of the licensing that requires a fee for each database instance. It's not really that expensive, but it's more than I want to spend for the number of databases I have.
    3. If you have Acrobat Professional, you can export XML file from the database and create "mail merge" type PDF documents. But you can also do this with Word and a simple CSV or Excel output. Both of these are pretty easy from APEX. I have used both. I found the Work mail merge to be a little easier for end users to use, so this is my primary choice. But Acrobat Pro method also works well.
    If you are interested in any examples of these methods, let me know and I can send you something.
    Bill
    Bill

  • Auto print out report for java application

    <p>Hi, </p><p>Now i&#39;m using eclipse 3.2 to develop a java application and using crystal report to create report.</p><p>I would like to directly printing out the report from the java application.</p><p>what the installer or plugin i need?</p><p>What the setting i need to set? </p><p>Can you give me the sample coding to directly print out the report from java application by passing parameter?</p><p>Thanks,</p><p>Hui Bee</p>

    There is a Consulting Solution called BOInterface that Business Objects Global Services sells and that helps you to achieve what you describe very easily.
    A description is <a href="http://www.mnsoft.org/bointerface0.0.html">here</a>.
    Particularly, see the <a href="http://www.mnsoft.org/boxinterfacedocs/com/bo/boxinterface/boreport/scheduler/BOReportSchedulerPrinter.html">BOReportSchedulerPrinter</a>. BOInterface comes with a complete example on scheduling to printer; that example can even itself be scheduled.
    Contact me via direct email for more information if this is interesting for you.
    HTH,
    M
    Matthias Nott -  Business Objects
    Service Line Leader Products EMEA
    [email protected]

  • Direct Print Issue IN Crystal reports IN IE(8,9,10)

    Hi All,
           I am an software developer using Dot Net and I am facing an issue in direct print in crystal report viewer in IE and i tried many setting.

    Dell is absolutely correct. However there is an issue with the CAB file for 'Crystal Reports Basic for Visual Studio 2008' (v. 10.5). The issue is documented in KBA: 2000455 - Unable to download the CR 10.5 PrintControl cab file. The KBA has not been yet replicated to SCN, so here is a copy of the content:
    Symptom
    Using Crystal Reports Basic for Visual Studio 2008 (V. 10.5.x)
    When attempting to download the PrintControl.cab file the following errors are displayed:
    A communication error occurred: "Operation timed out"
    The Web Server man be down, too busy or experiencing other problems preventing it from responding to requests.
    Internet Explorer cannot display the page
    Environment
    Crystal Reports Basic for Visual Studio 2008 (v. 10.5.x)
    Visual Studio 2008
    Cause
    The published URL (http://support.businessobjects.com/CRforVS2008/PrintControl.cab) is now incorrect
    Resolution
    Use the following URL: http://resources.businessobjects.com/support/downloads/microsoft/vs_2008/printcontrol.cab
    An alternative may be to use the Print PDF mode, though if memory serves right that was a cumbersome solution and is much better with CR 2008 (v. 12.x) and later.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • ALV Report with Logo .. Print Out Problem

    Hello Guys..
    I am facing and differerent problem , I have created one Report in ALV contain logo of my company and some other details as per selection screen.
    At the time of taking printoput the logo is not coming in print out only report data is  coming.
    How I take logo and ALV report in one print out .
    Please do the needful.
    Regards
    Swati....

    We Can't take logo of ALV in print out.

Maybe you are looking for