Printer button codes

we need the correct placement for the java script code to print more than 1 page so we can hit the print button and it will print 2 or 3 pages of the fillable form.
here is what I have right now
xfa.host.print((1, "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0)xfa.layout.pageCount(3));
Thanks
Bob

From the LiveCycle Designer documentation:
$host.print( BOOLEAN param1, INTEGER param2, INTEGER param3, BOOLEAN param4,
BOOLEAN param5, BOOLEAN param6, BOOLEAN param7, BOOLEAN param8 )
param1: display print dialog
param2: start page zero based
param3: end page zero based
param4: cancel dialog
param5: shrink to fit
param6: page as image
param7: use param2 and param3 parameters
param8: print annotations
xfa.host.print((1, 1, 2, 0, 1, 0, 1, 0)

Similar Messages

  • Need help to write code for 'Print" button......!

    Hi all,
    I am working in oracle forms 6i.I am creating forms for ordering product/quantity(Entering quantity/product details). In my form i have "Print button" to print the quantity details which is in multi-record block(database item).Please help me of how to write code for print button. If u had any source code please post it.
    Please help asap......!
    Thanks
    regards,
    jame

    You haven't got an answer or a reply because this question is asked so many times.
    Why don't you search the forum to find them?

  • 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

  • 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

  • Using the print button to print then close a document

    I use Live Cycle Designer to create my Adobe documents.  I am working on a kiosk project and one of the menus navigates to a document page that has PDF documents and forms for users to print out.  The way the kiosk is designed, I would like for my pdf file to close after the print button is selected.  I recieved a solution in the general Adobe forum, but later found out the script does not work if the document was made using Live Cycle.  Any suggestions???  Is it possible??? Thanks.

    Open your PDF file in adobe livecycle designer, select print button on PDF.
    Go to windows(in adobe designer menu bar) and select Script Editor - In Show dropdown list select postPrint event and copy paste the code below-
    app.execMenuItem("Close");
    Regards-
    Chalukya.

  • Ideas for Adding a Quick Print Button to VA01 Overview Screen

    Problem Statement:
    Our users would like a "quick print" button on the VA01/VA02 application toolbar that immediately spools the Order Confirmation output to the printer.  Our users want to print the output on demand, i.e., they do not want the output to automatically be printed when the order is created because a printout is not always needed.  We already have condition records created with Dispatch Time set to 3 - Send with application own transaction.  However, it takes 7 or more clicks to print the output on demand by navigating the menu (Extras > Output > Edit...Further Data...etc.) and changing the Dispatch Time to 4 - Send immediately when saving.  This is a big ergonomic issue and a time killer.
    Although the number of clicks to print are less when printing the output from the VA02 initial screen (via menu Sales document > Issue Output To), this is not acceptable when creating new orders.  Really need an on-demand, quick print button on the VA01 screen.  As an aside, we have a totally custom transaction for preparing sales order data (shopping cart-like way of finding materials and entering required data) that then calls VA01 and fills in all of the information.  When saving in VA01, the user is returned to our Z-transaction so asking the user to subsequently run VA02 to print is not practical.
    Current Output Determination:
    We have custom output type ZBS0 (copy of BS0).  Condition records for print medium are set to Dispatch Time = 3.
    Questions:
    1.  Searching these forums, it appears custom code (extension or user exit?) can be written to call RSNAST00, or something similar, to automatically send output having a Dispatch Time = 3.  Where can I find more information on exactly how to do this?
    2.  Do transactions VA01 and VA02 (Overview screens) have extensions that allow a print button to be added to the application toolbar?  We would want to call the custom printing code from the button to send the output.
    Any feedback on how others have solved this problem would be greatly appreciated.
    Warm Regards,
    Rob
    P.S.  Using GuiXT is not an option for us.

    HI
    We had similar issues with printing packing list and picking list by the warehouse people.
    We created a new ztransaction with input fields of delivery number, output type, number of copies and a check box for repeat output(in case if the output was already printed).
    You can also create a new Z-transaction with input fields of Sales order number(mandatory field), output type (Default it with value of ZBS0), number of copies (default it with 1) and a check box. On executing the transaction You can provide a message if the output was already printed so that the user can select the check box to repeat the output and execute. You can also print multiple SO by giving a range value if required.
    If you do not want the user to enter the new ztransaction every time, try providing a menu path to the new z-transaction from the existing z-transaction which you are using for order entry.
    Hope this helps you.
    Thanks,
    Arun.S

  • Print button on Form

    need to add a print button to the find users results form,
    To print the results...
    or any ideas on exporting the results would be also appreciated...
    Thanks in adv
    Nsankar

    Thanks Shant....
    for those who might need ....
    the final form field code is as follows
    <Field button='true'>
    <Display class='Button'>
    <Property name='label' value='Print Results'/>
    <Property name='onClick' value='javascript:window.print()'/>
    </Display>
    </Field>
    On clicking the "Print Results" button - triggers the Print Function .
    this works exactly like you hitting the - File - Print
    Thanks
    Nsankar1d

  • Cannot keep print button on toolbar

    Since upgrading firefox I cannot keep the print button the toolbar. I can open customize and pull the print icon button onto the toolbar but it is not there when I open a new session. Ii have to drag it again. How can I keep it in place. This just happens on one desktop. I run another desktop and a laptop without this problem
    Thanks

    Print the report where? On what printer? The server's printer?
    Java code runs on the server. You can't affect the client's computer from JSP.
    You can write javascript code which can call window.print() but that is working through the browser to display the print dialog box (as if the user selected file:print)

  • Print button on custom screen

    Hi all,
    I made a custom screen and a menu (status ) for that using menu painter. I want to put a button there for printing the screen. What code i have to write for that print button so when user presses print button, it prints the screen????
    Thanks
    Ribhu

    Hi,
    Do you know any other exisiting standard screen which function like same as in your customer screen.
    if yes, note that screen program name and screen no and then in your module program:
    go to PBO
    write command as set pf-status 'XXXX'. " ur pf status
    double click on 'XXXX'
    go to utilities --- adjust templeate
    Give that screen program name and screen no
    if u dont want redundant codes then. deactviate /delete it...
    Then activate all...
    then check now ... ur all of fuction buttons are working!!!
    Jogdand M B

  • 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?

  • I need crystall report print button support insted of exporting to pdf then print

    Crystal reports are the most widely used reporting software.its print button is working on active X controls. due to the i am not able to use direct print button.
    so please help me to provide a plugin for crystal report

    Here is C# code for print crystal report
    cryRpt.PrintToPrinter(2, true, 1, 2);
    check this it will help you to print crystal reports
    http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-print.htm
    It may help you.
    merca.

  • Ideas for Adding a "One Click" Print Button to VA01 Overview Screen

    I am not an ABAP developer and am doing some preliminary functional investigation to determine the best way to add a simple "one-click" button that allows a Sales Order Confirmation output to be sent to the printer.
    Can someone that really knows, tell me whether or not a custom menu item can be added to VA01 and VA02?
    I have seen lots of threads telling folks how to find user exits and menu exits for a program so I don't need that advice.  Rather, looking for someone who has already investigated this for VA01 and VA02 and knows the answer.
    Problem Statement:
    Our users would like a "quick print" button on the VA01/VA02 application toolbar that immediately spools the Order Confirmation output to the printer. Our users want to print the output on demand, i.e., they do not want the output to automatically be printed when the order is created because a printout is not always needed. We already have condition records created with Dispatch Time set to 3 - Send with application own transaction. However, it takes 7 or more clicks to print the output on demand by navigating the menu (Extras > Output > Edit...Further Data...etc.) and changing the Dispatch Time to 4 - Send immediately when saving. This is a big ergonomic issue and a time killer.
    Although the number of clicks to print are less when printing the output from the VA02 initial screen (via menu Sales document > Issue Output To), this is not acceptable when creating new orders. Really need an on-demand, "one click" quick print button on the VA01 screen. As an aside, we have a totally custom transaction for preparing sales order data (shopping cart-like way of finding materials and entering required data) that then calls VA01 and fills in all of the information. When saving in VA01, the user is returned to our Z-transaction so asking the user to subsequently run VA02 to print is not practical.
    Current Output Determination:
    We have custom output type ZBS0 (copy of BS0). Condition records for print medium are set to Dispatch Time = 3.
    Ideal Solution:
    Add a Print Icon to the application toolbar as described above.  From the button, write custom code that calls RSNAST00 (or is there a better way?) to send the output to the printer.
    Any feedback on how others have solved this problem would be greatly appreciated.
    Rob

    Still looking for input from anyone that has had experience trying to add a menu item or toolbar button to VA01.  In our case, for sending output.
    Madhu,
    Please again read my Problem Statement in my original posting for the business requirement.  We are using ECC 6.0.  Yes, I know that transaction VA02 has Sales Document > "Issue Output To" that allows you to print.  However, we want to be able to print from the VA01 Overview screen after all of the sales order information has been entered.  We would like to be able to click a print button which would save the new sales order and immediately issue the output.  Again, we do not want the output to automatically print for every new sales order - we want to be able to print only when needed.  The conditions that a sales person would use to decide to print a copy are too numerous or varied so they cannot be automated in a condition record.  Of course we do use condition records for creating the output but we do not send immediately on save.
    When creating a sales order, the sales person does not want to do the extra clicks and key strokes to then navigate or open a new VA02 session to print from the VA02 initial screen.  And as described in my original posting, it is a lot of clicks navigate the VA01 Extras > Output menu to change the output to print on save.
    If you observe the "day in the life" of a sales person and see all of the key strokes and clicking required to create an ECC 6.0 sales order, you understand why the extra 7 to 11 clicks to just print an output is very annoying.  We have created a totally custom Z-transaction that allows our sales folks to capture everything need for a new sales order all on one screen with no tab views.  We then launch VA01 to fill in all of the data entered in our custom transaction.  This all works very well and is a huge time saver for our sales staff.  Now we are looking to save a few more clicks by simplifying the printing.

  • Print Button in Web Dynpro ABAP

    Hi Everybody,
    i hope that someone know or have a code sample how i can set a print button to the Web Dynpro for ABAP. On click on this it should open the print window from the Internet Explorer.
    Please let me know if there is any information about this.
    Thanks
    Best regards
    Markus

    Hi,
    If you are using the Internet Explorer 7, you can use CTRL + P to invoke print directly on any WebDynpro ABAP view.  This is IE 7.0 browser featute & always has print preview & print options available from File Menu's. So you dont require any additional buttons on view :).
    For table data if you use ALV you get options to export data to excel or fire print directly
    Greetings
    Prashant

  • Adding a Print button to a Flash movie

    Hi. I've created a Flash movie and now want to add a simple
    print button to it - one that will just bring up the users default
    print dialog box.
    I've created a new layer, highlighted the first frame and
    dragged a print button in from the library.
    When I press F9 to bring up the Actions pane, selected the
    Print section all that comes up is print(). Can somebody tell me
    what other code I need to add? I'm pretty new to Flash but getting
    there, but the ActionScript is baffling me - I'm a designer, not a
    developer!
    Many thanks.

    If Flash 8, try looking into the printAsBitmap function. It
    might be what you are looking for.
    For AS 3.0, try the PrintJob class.

  • How to Disable Print Button in document.htm?

    Hi,
       I'am using HAP_DOCUMENT BSP applications for Appraisal.I had creatde iViews for that BSP's in Portal and am able to acess all the BSP's.
       I'am using document_created.htm BSP for displaying Created Appraisals and it is working fine.When i click on particular Appraisal mentioned in that iview it will move to next page i..e.,document.htm where we can see the complete description of the Appraisal.Now we had 5 buttons in that page
    Action Log,Exit,Display Scorecard,Disaply Qualifications and Print.
      Now i want to disable Print Button.I searched a lot but am unable to find the exact code written for this Print button.I dnt know much abt the coding of BSP's,please anybody guide me with a solution.
    With Regards
    Praveen

    Instead of disabling the print buttons, you can restrict creating the actual output message for a specific output type.
    You can achieve it by creating the Output Requirement in transaction VOFM. You need to assign this requirement to your Output type. In this Requirement you can check all your conditions. If they all validation pass through than and than create the Output.
    Regards,
    Naimesh Patel

Maybe you are looking for