Print button - printing sections

Hi everyone - i want to add a print button on my page but I
don't want all of the page to print just a part.
Q. Is it possible to put a print button limiting the field
Q. is it possible to put in a hidden section of text which
only appears whent he material is printed?
Many thanks
Bim

You can use javascript to achieve what you want. You can also use a iframe for the content that can be printed and use the print code as below:
Script:
<script type="text/javascript">
function printpage()
  window.print()
</script>
HTML:
<div align="center">
<input type="button" value="Print this page" onclick="printpage()" />
</div>
example: http://www.mydentistinc.com look at the coupon download page for the print button.

Similar Messages

  • Why won't the print button print?

    first off i have to thank everybody here for such a great resource and thank those who have answered my topics!
    i have my forms coming along and almost finished. one form works flawlessly and now my final form is done and the damn print button won't print. i used the javascript code on here for validating fields in the print button and it worked fine on one form but now on this form it just doesnt. ive racked my brain for hours and tried countless things. here is the form
    http://www.hotwaxsurf.com/rentalequip.pdf
    if someone would be so kind to look at it with fresh eyes. thanks
    Jay

    Looks like you've added a subform (Subform1) to the form which is breaking your script. You need to add it to your script. ie: Subform1.name.rawValue rather than just name.rawValue. another option is to unwarp that subform.
    Rich Ruiz
    Novanis

  • Updation of table after Print and Print-Preview in smartform

    Hi,
    I am having a requirement where i need to print multiple deliveries with the sales order data each delivery on a new page using smartform.
    Now , i am using SSF_OPEN, SSF_CLOSE Fm's for the same. I need to update a Z table after the user clicks on PRINT from the pop-up or print from the print preview screen.
    I tried using the output_info parameter in the smartform where i read from a post that the OUTPUTDONE parameter becomes "X" in the job_output_info when the user clicks print wither in the two ways said before.
    This does not work out in case if the FM'S SSF_OPEN and SSF_CLOSE are used.
    Kindly help me on the same.
    Thanks in advance

    yes i tried that..using the AT new event for a Delivery and then a command to go to the NEW PAGE, but somehow when i execuet the form, i could not see the layout..so in the debug i saw the subrc after the FM is run..it says SUBRC = 2 i.e. internal error. I am not able to figure that out.
    So i had to use these open and close, nowi just want to update a z table if the user clicks on the print button (print preview screen) after using the print preview .
    Kindly suggest.
    Thanks.

  • Print Button Derived From a Select List Is Not Working

    Hello,
    I followed the instructions "Creating a PDF Report from Derived Output Format" http://www.oracle.com/technology/obe/apex/apex31nf/apex31rpt.htm#t2
    Steps
    In order to derive the output format, you need to create an item that contains the list of formats to select from. Perform the following steps:
    1. Under Items, click the Create icon.
    2. Click Select List.
    3. Make sure Select List is selected for Select List Control Type and click Next.
    4. Change the Name to P<#>OUTPUTLIST and click Next.
    5. You need to specify the list of output types for the report and the bottom of the page. Select the Create or edit static List of Values
    6. Enter the following values and click Apply.
    Display Value Return Value
    PDF PDF
    Word RTF
    Excel XLS
    HTML HTM
    XML XML
    7. Select No for Display Null Option and Click Next.
    8. Change the Label to Output Format and click Next.
    9. Enter PDF for the Default and click Create Item.
    10. Now that the list of output formats is created, you need to change the Output Format when the Print link is selected. Under Regions, select the Print link.
    11. Under Printing, select Derive from Item for Output Format and select the item you just created P<#>OUTPUTLIST for Item and click Apply Changes.
    12. Click Run Page.
    13. When the report is displayed, select Excel from the list of Output Formats. Note: In Oracle Application Express 3.1, the XML format was added
    14. At the bottom of the report, select the Print link.
    15. A window appears asking you which program you want to open the Excel file with. Click OK (or Open depending on what browser you have) . Excel is open and the report is displayed. Close the Excel window.
    16. You can also create a button to produce the report based on the output format rather than clicking the Print link at the bottom of the report. Click Edit Page.
    17. Under Buttons, click the Create icon.
    18. Accept the default and click Next
    19. Select Create a button displayed among this region's items and click Next
    20. Enter P<#>_Print for the Button Name, enter Print for the Label and Request and select HTML Button for Button Style. Then click Create Button
    21. The region printing link contains the id of the region. Since you want to invoke the print from a button instead of the link you need to create a branch and specify the FLOW_XMLP_OUTPUT_R### parameter in the Request field for the Action so the application knows what to do when the Print button is pressed. Under Regions, select the Print link.
    22. Ctrl-C the FLOW_XMLP_OUTPUT_R### section of the Print URL field. Since you are going to invoke the print from the button, you can remove the Print in the Label Link field and click Apply Changes.
    23. Under Branches, select the Create icon.
    24. Accept the default and click Next
    25. Enter the current page for the Page and paste the FLOW_XMLP_OUTPUT_R### parameter that you copied into the Request field and click Next.
    26. Select P<#>_PRINT for When Button Pressed and click Create Branch
    27. Click Run Page
    28. Select XML for the Output Format and click Print.
    If I use the link at the bottom of the report region when I set the print options on the print tab of a report, it will print out in both pdf and rtf formats. I get an error with the Excel format. The print button isn't even working. When I select the button, nothing happens.
    Any help is appreciated.

    Hello Andy,
    I ended up putting in a ticket with Metalink. It is a known bug it seems. This is what the rep said:
    UPDATE
    =======
    These bugs are fixed in the next ApEx patch 3.1.2. Patch 3.1.2 is expected (tentatively) in 2 weeks at the
    earliest.
    The bug fixes for these bugs have been backported to 3.1.1 and the one-off patches (patch 7202883 & 7156139) can be downloaded from metalink. One-of
    f patches do not undergo the normal full regression testing, as is done for the
    full APEX 3.1.2 patch set.
    Once 7202883 and 7156139 were applied, I was able to download in all formats.
    Kelly

  • 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

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

  • 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

  • Javascript to put in a print button that prints the center of my pdf

    I have a manual which is 942x792pt and want in adobe reader when a print button is pushed it only prints the 8.5 x 11" (612x792pt) center section of the page layout.
    Tried to find a way to put navigation and print buttons outside a 81/2 x 11 page size but failed, now thinking this is an alternative option. Anyone come across a script which would do this or a method of putting nav buttons outside document print area.
    Z
    Here is an example of one someone has accomplished this in.
    http://www.mediafire.com/?h62z5y341wyky66
    Thank you in advance.

    You might consider using the app.addToolButton method to create your navigation buttons. When executed from a script within the document, the buttons appear in a floating window and don't go away when you adjust the zoom, as they do with the sample you linked to.

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

  • Question about print button

    Good morning everyone,
    Quick question for you this morning, im playing around with the print button and so far i get it to do what i want. Which is basically print in "FIT" mode like this:
    xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0);
    now this takes care of people who press my custom print button, but i dont have control over the folks that might activate that from the print icon or from the print menu options.
    Now for this i know that using PRE:PRINT would solve it for sure, but i dont know how to write the code in there so it works.
    What i did at first is copy the print code above in that section, but if i press my Print button where the same code is, i create a endless loop.
    Im just trying to cover my self and make sure that what ever one of the 3 print choices they choose, i will be able to execute the code above and without any infinite loops
    Any ideas how i could set this up?
    Thank you very much again!!!

    Hi,
    you can disallow printing form the menu items or key combination with a bit of scripting.
    But first you need a variable you add under the form properties with a default value like 0.
    Lets name it "usedPrintButton".
    Ok, now the scripting part.
    There are 3 scripts in 3 different events neccassary. You can use all those events of your print button.
    1. click event
    // Modify the variable to imply user has started printing from this button
    usedPrintButton.value = "1";
    xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0);
    2. prePrint event
    // Check the variable and cancel printing when it's 0
    if (usedPrintButton.value == "0") {
              xfa.event.cancelAction = true;
    3. postPrint event
    // Set the variable back to 0
    usedPrintButton.value = "0";
    Hope this helps.

  • Print button that prints only certain pages

    I am using Acrobat Pro, and have a large document, the first four page section of which can be a stand alone document.
    I have set up one print button which uses Execute a menu item > File > Print, for users who want to print the whole document.
    I would like to create another button that prints only the first four pages - is this possible?
    Thanks in advance

    You need the Acrobat Pro forum

  • How do I create a print button to print a specific range of the document.

    How do I create a print button to print a specific range of the document.  I've found JavaScript to print a specific page, but a range or even multiple ranges.  Form is created in Adobe 9 Pro.  Any help would be truly appreciated! 

    Sure, I'll give it a test.  Its just that I have a 128 page form that not all of it needs to be printed.
    Currently,  I have an index page where I want to set up a print button queues per form, however there are several form scattered throughout the document that make up a specific section, but it does not require printing the entire document.  Does that make sense?
    I did find this JavaScript during my reseach, but have not be able to get it to work.
    var pp = event.target.getPrintParams() ;
    pp.interactive = pp.constants.interactionLevel.full;
    pp.printRange=[[1, 1], [3, 4]];
    event.target.print(pp);

  • 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

  • The Add Printer button on the eprintcenter website on my screen is not working.

    I just registerd on the eprintcenter.com site and now I am trying to click on the +Add Printer button/icon to add my printer and it is not working. I have tried it in all different web browsers and it doesn't take me anywhere on any of the browsers. Sometimes I get the "javascript&colon;void(0)" message down in the left hand bottom portion of my screen when my mouse goes over that button. What is wrong? Is it your site or my computer?

    I'm having same problem

  • Creating a print button to call a Report Query and pass filters

    If i use the REPORT QUERY option in APEX 4 to create an statement that is the same one used in an interactive report, can I create a link or button to the REPORT QUERY and pass all the session and filter information from the interactive report to the report query?
    This way I can have the interactive report screen where the user can do all sorts of modifications and such and then pass those to the REPORT QUERY so I can call that from a custom link or button.
    You may ask "why does he need another print button?"
    Answer: I am using a view that has some embedded HTML tags to format the output really nicely. The HTML download version created by the interactive reports works beautifully. The customer also wants a PDF version (meh) which does not render the HTML tags and actually echos them as part of the text. I found that I can create another view that uses the CHR function to create all the breaks and such I was doing with HTML and these do render properly in PDF. So, I figured just have 2 reports: 1 Interactive and 1 using a REPORT QUERY. I just want to call the REPORT QUERY version but use the Interactive Search form to set all the parameters.
    Or, am I over thinking this and there is an easier method?
    I made a previous post where I showed how I got the APEX printing to work and i hoped that helped someone out - fixing this issue would put the whole thing to rest.
    Thanks

    Is BI Publisher desktop (MS Word add-in) a possibility? This would allow you to use MS Word to create your output template (RTF) that would result in a properly formatted PDF. Of course, you'd have to right an updated version of the query without HTML embedded. Just thinking outside of the box.

Maybe you are looking for

  • Square root function

    Hi , I am wrting a business rule and am not able to get a function for square root. Any ideas on this . Urgent pls Khan

  • Photoshop CS 4 crashes any time a pdf is opened.

    Regardless of the pdf file. (I have downloaded Adobe PDF's from Adobe.com) my copy of PS CS4 will crash on opening any pdf. I'm guesssing it's some prefs somewhere are corrupt, and removed the normal culprets, which did not solve the prob.

  • How to transfer the picture and video from ipad to pc

    I want to transfer the picture and video from ipad to pc while we restoring the ipad?

  • Imovie 10.0.1 can't start - help!!

    after importing my content from iMovie 9.0.9, iMovie 10.0.1 won't start.  Perpetual color wheel.  HELP!

  • Linker "unresolved external" error

      I have a large project written in straight C that Visual Studio 2013 (with a little forcing) compiles and runs without error.  I have written a C++ shell around it to create a new project.  Everything works except that I get the "unresolved externa