A print button in a Report

I have a displayed version and a printing version of a report. I want the end-user to print the "printing version". Therefore, I cannot use print window and also because the entire report does not show in the window. I want to create a button or hyperlink in the report that enables the end-user to execute the run link for the printing version of the report in a different window and print it using the browser's print function. What objects do I need to create to achieve this?

I managed to do this in the following way:
1. Create two reports - Your_report and Your_printable_report
2. Put this in the additional PL/SQL section of "Your_report".
htp.p('<a target="_blank" href="<URL of Your_printable_report.show>">View printable version</a>');
3. In the additional PL/SQL section of "Your_printable_report"
htp.p('<form><input type="button" value="Print" onClick="window.print()"></form>');
This creates the first report with a hyperlink to the printable version, which has a button to print it.
Hope this helps,
Hsiu

Similar Messages

  • Print button on Web report.

    Hi gurus,
    We were trying to add a print button on Web report for printing the result area on the Web report.
    We followed the steps which has given in the How-to-guide How To Web Printing with Microsoft
    Excel document.
    In the document it has mentioned that
    1. Support package should be above 19 for BW 3.5 version
    2. Add HTML code in the WAD Template
    3. Import Transport file into the System.
    4. Apply OSS notes 736568 and 737082 to BW
    We upgraded the support package to 22, added the html code in the WAD template, imported the transport file into the BW system and applied the OSS notes as per the mentioned in the document.
    The transport file contains the Package u201CZPK_WEB_PRINTING_WITH_EXCELu201D and ABAP Classes u201CZCL_RSR_XLS_GRIDu201D,
    u201CZCL_RSR_XLS_HELP_WINDOW_PRINTu201D,
    u201CZCL_RSR_XLS_ITEM_CONDITIONu201D,
    u201CZCL_RSR_XLS_ITEM_EXCEPTIONu201D,
    u201CZCL_RSR_XLS_ITEM_GRIDu201D,
    u201CZCL_RSR_XLS_ITEM_TEMPLATEu201D,
    u201CZCL_RSR_XLS_ITEM_TEXT_ELEMENTSu201D,
    u201CZCL_RSR_XLS_TABLEu201D
    After import the transport file into BW, some of the objects in the ABAP Classes were not activated. I was trying to activate manually but those were not activating.
    Please guide me how to resolve the above issue or is there any way to get the printing the web report?
    Thanks in advance.
    Venkata.

    Hi
    If you want to print the web page directly then you can define a button using Java script and you can do it.
    Define java script code to print the page
    for ex define a button and call function for print.
    i cannot attach the code. but you can solve with java script
    Regards
    M.A
    Edited by: M.A on Jul 24, 2008 4:22 PM

  • While Printing using Print Button on Crysal Report Loses focus.

    Hi all,
    I am using CR XI along with VS2003 for developing my application.
    My application uses a Treeview to list all the available reports, once user select one of the report. I am using another dll, which contain all the rpt files as Embedded Resource, for showing the report in Crystal report viewer.
    Once report get loaded, I am using Print Button from Crystal report viewer to print the report.
    report get printed properly..
    However a strange behavior occurring, Form with Crystal report viewer control placed loses focus and immediate below window coming into focus (some other opened window get activated and bring to front and hiding my application).
    Any suggestion would be appreciated.
    Thank you
    Riju K K

    Hi Brian,
    Thanks for you are reply.
    I think I am not creating a separate process,
    From my application, I am creating an instance of form (which is in another DLL) which is hosting Crystal report viewer.
    If click "Print" button on the Crystal report viewer, I am getting a Printer selection form.
    If I cancel from there ,my Crystal report viewer form get focus back.
    If select a printer and click "OK". my Crystal report viewer form lost focus and some of the other window opened (word, ie, etc) before get focus.
    My assumption is Crystal Report viewer's "Print" button may be using a separate thread for Printing.
    that may creating this focus issue.
    what you think?

  • Add a Print button to a Report Page

    I'm trying to add a Print button to a report page to render the page in printer-friendly mode and then give the user the option to send to a printer. I started with just trying to add a print button. I added a button to the region and added to the button request value javascript:window.print();. When I click on the print button, nothing happens. So I tried to add some html code:
    <form>
    <input type="BUTTON" value="Print" onClick="window.print()">
    <form>
    as a condition in Expression 1 when I selected "Current page is NOT in Printer Friendly mode". Nothing happens when I click on the print button. Can anyone offer some steps to create this functionality or point me to documentation on how to do this? I have tried the help documentation within APEX and isn't clear to me.
    Thanks

    The documentation wasn't very clear to me. I did try one suggestion to create a region on the report page and call it Print. The suggestion is then to add the following code to the Source Region section:
    <form>
    <input type='BUTTON' value="Print this page" onClick="window.print()">
    <form>
    The example however leaves out some significant information however. What is the region created as e.g. HTML, Report, Form, URL, etc?

  • Adding print button to interactive report

    For now I have the downloaded to PDF option checked so the user can print an interactive report via the widget.
    I would like to have a print button on the report also.
    Has anyone got any of the java script stuff working off of a button?

    Hi willjamu ,
    All you should have to do is call the 'PDF' request to download the same report the drop down will create.
    f?p=355:14:3381437251536222:PDF::::
    I hope I was able to answer your question let me know.
    Mike

  • Print Button of SSRS report is not display report in IE11

    Hello All,
    We are running on SSRS 11.0.0.0, .net framework 4.5, SQL server 2012. 
    Everything is working fine in IE9, IE10, now our client has updated their browser to IE11. In IE11 the print button in SSRS report is not showing. We have tried browser file,
    it will show print button in IE11 but it is not functional. we  have also tried to change browser mode to IE 10 or IE 9 (using <meta http-equiv="X-UA-Compatible" content="IE=8" />) but it didn't work in IE 11.
    Some forum suggested to change framework to 4.5.1 but i
    cant change framework now. so please suggest some alternatives to achieves the functionality.  

    Hello Pinakin,
    I recommend that you post your question in SSRS or IE related forums.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can we add custom print button to crystal report launched using jsp

    Hi,
    I need to add a print icon in crystal report. My requirement states that I should not use the print button given in the taskbar of crystal report. Can this be done?
    Thanks

    Are you using Crystal Reports for Eclipse?  If so, there is a new version out that suports Excel exporting:
    /people/blair.wheadon/blog/2009/01/16/announcing-crystal-reports-for-eclipse-20

  • Help on print button for interactive report

    Hi,
    I have created an interactive report and have also added a print button on the button of the report (unfortunately forgot how I did it). Say my column on the reports was Col_No, Col_First_name, Col_Last_name and a print button when I pressed a would get to choose open or save a pdf file, if I opened or saved it, I would had the same info on my pdf report as above.
    Since I have changed the column order meaning I have Col_No, Col_Last_name, Col_Start_Date, Col_First_name and that is working fine but when I click on the print button I will get the pervious columns.
    I noticed I have created a branches to print the report, basically after processing, when button was pressed an action with f?p=&APP_ID.:0:&SESSION.:PRINT_REPORT=6259824360775969936:&DEBUG.::: is present.
    I need help to fix this and I do very much appreciate any help or suggestions
    -regards
    ahmadii

    Found the answer, thanks.

  • Print button to crystal report

    Hi All,
                  In my business partners form i want to take related activities report.If i press print preview then basred on my coding it should go to cystal report not to sap report.can anybody suggest me some ideas about this.
    thanks
    shangai

    Hi
    What version u r using?
    If it is 2007 then it will take the Normal PLD only,there is no automatic diversion to Crystal report.
    In 8.8 u can have both option PLD & Crystal Report to print the Doc's
    Giri
    U have posted two thread r it might be duplicated. so close one thread and follow the other thread.
    Edited by: Giri dharan on Jan 6, 2010 12:36 PM

  • Can we have a "print button" to print massive report document ?

    Hi there,
    Can we have a "print button" to print a massive report document (e.g 3000 page , each for a specific customer description), instead of exporting to pdf or excell before printing.. ?
    Thanks
    -toni

    You cannot have a print Button in the report, But have you tried Scheduling the report, and setting the output to printer? That might meet your requirement. You can also use the schedule section to run it immediately (once)
    -Domnic

  • Report is not starting an adobe window when pressing the print button

    When ever I press the print button on my report and I get the box that asks you which page to print.  I choose all and then press the ok button.  Nothing happens when I press the ok button.  I'm I missing something on the server that is running the application.  It works locally but not on my test server.
    Thank you

    Well, in order to print using PDF, you must have adobe installed...
    I understand that you have some CR Service Pack installed, but I am not sure which one. I'd recommend you download SP 5 from here;
    https://smpdl.sap-ag.de/~sapidp/012002523100013876392008E/crxir2win_sp5.exe
    And use the msm to install the runtime. The SP 5 msm is here;
    https://smpdl.sap-ag.de/~sapidp/012002523100001088442009E/crxir2sp5_net_mm.zip
    Re.; I was wondering I am missing something from the server that converts the report to pdf and shows it in the adobe viewer.
    Not  that I am aware of.
    If SP 5 does not help, a question for you; can you print any pdf document (non CR) from adobe on that server?
    Ludek

  • REPORT VIEWER- PRINT BUTTON- NOT PRINTING ONLY IN SOME MACHINES

    I built a project in VS2008(VB.Net) and it uses RDLC reports...When ive published my software i tried and it works fine and can print successfully on my machine but when i tried on the target machine i can export to pdf but i cant print the files directly
    using the print button on the report viewer...What is the problem? Thanking you in advance.

    Hello,
    Which browser did your used in the target machine? The issue may happens when you use none-IE browser. 
    The ClientPrint control of the Report Viewer control is based off of ActiveX and is not designed to work in none-IE browsers. This is a known issue in Report Viewer control.
    To workaround this issue, you can try to use custom control or ActiveX control to get the print option enabled for the Report Viewer.
    Reference:http://www.codeproject.com/Questions/608046/Reportplusviewerplusprintplusbuttonplusisplusnotpl
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Print button on WAD template

    Hi,
    Presently we are in BW 3.5 version with support pack 22. We enhanced the html code based on ' How to ... Web printing with MS Excel' document. We imported the transport file which contains package and ABAP Classes.
    After click on the print button on Web report, it was giving the same result area in the same page instead of giving the excel open or save options.
    How to debug the enhanced html code in the WAD template? How to check the ABAP class('ZCL_RSR_XLS_HELP_WINDOW_PRINT') which i used in the
    code?
    Or is there any way to print the result area of Web report?
    Please help me.
    Thanks in advance.

    This question has been answered

  • Inactivate the print button is the ABAP list

    How can I inactivate the print button in the report program (ABAP list)?
    I can inactive the print button on selection screen by using 'RS_SET_SELSCREEN_STATUS'. But can't achieve the same effect after the program jumped to the list output screen.
    Thanks!

    hi,
    To achieve this you need to create your own custom pf-status. The tcode for creating new pf-status is se41. Goto SE41, enter the program name and click create.
    Enter the menu bar buttons, application tool bar button and Function key as per your requirement. Active the pf-status. Once the pf-status is created, use this in your program using the statement.
    set pf-status 'ZPF'.
    Regards,
    Richa.

  • Print preview for crystal report

    hi kings,
    I have one problem . I Designed userform that form have print button when i press the print button the crystal report Open and show the data. but the report is not open when i press the button.Please any one help me out of this issue
    the error Shows-Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
    Dim oForm As SAPbouiCOM.Form
                        oForm = gonAppApplication.Forms.Item("Emr_NewNCMR")
                        Dim Docnum As String = ""
                        Docnum = oForm.Items.Item("txtDocNo").Specific.value
                        Dim cr As New CRAXDDRT.Report
                        Dim apcr As New CRAXDDRT.Application
                        Dim myCrystalReportViewer As CrystalActiveXReportViewerLib102.CrystalActiveXReportViewer
                        Dim RptDoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument
                        RptDoc.Load(System.Windows.Forms.Application.StartupPath & "\Ncmr.rpt")
                        RptDoc.SetDatabaseLogon("sa", "Sa@123", gonComCompany.Server, gonComCompany.CompanyDB)
                        RptDoc.SetParameterValue("@Docnum", Docnum)
                        myCrystalReportViewer.rptViewer.ReportSource = RptDoc
                        myCrystalReportViewer.rptViewer.Refresh()
                        myCrystalReportViewer.ShowDialog()
    thanks regards
    B.lakshmi Narayanan

    THANKS

Maybe you are looking for

  • Could not find "ADF Data Controls" in ADF tutorial 10.1.3.1.0 chapter 2

    Hi I am currently learning Oracle ADF followed by 10.1.3.1.0 tutorial. ( September 2006 Revision ), I installed Oracle Jdeveloper 10.1.3.2.0 on my pc with remote 10.2.0.2 database connection. In the manual page 2-17, the final step of that chapter, i

  • Picture with no sound - Cable Card

    has anyone turned to a channel where the picture was on display, but not the sound? I know it's not my TV/sound system, b/c as soon as I change the station, the sound returns. this has only appeared on one tv, my plasma with a cable card, and only on

  • AvantGard / Sungard GetPaid - SAP AR SD integration experience

    Hellp Does anybody know about existing interfaces for master and transaction data between SAP ECC AR and SD and GetPaid? Or does this needs to be programmed, not off the shelve? customer master data credit risk limit dunning level risk category open

  • Decimal marks in Photoshop

    Dear fellow users, I am using the german edition of Photoshop CS5 (same issue with CS4, however). Is there a way to set the decimal mark from "dot" to "comma"? It is a german standard to have a comma as separators - and in Illustrator and InDesign it

  • Need BAPI/FM to update Contract conditions using FNVM

    Hi,      I need to insert/update contract conditions in tcode FNVM.Kindly suggest me a BAPI/FM to achieve this functionality as BDC for insetion/updation of contract conditions in FNVM is not possible since i am not able to capture the recording for