Create a print button to print one frame

I am trying to create a print button on the last frame that will allow the user to print just that frame.  I've tried using the printjob object, but all that I can get to happen is print a blank sheet of paper.  Here is the code that I have so far:
function printScore(event:MouseEvent):void
    var printJob:PrintJob = new PrintJob();
    var sprite:Sprite = new Sprite();
    printJob.start();
    printJob.addPage(sprite);
    printJob.send();
btn_print.addEventListener(MouseEvent.CLICK, printScore);
If I right-click and choose print while viewing the .swf file, it prints correctly.  What am I missing in order to make my last frame print through my print button?

I just found my answer on this thread: http://forums.adobe.com/message/57234#57234

Similar Messages

  • 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);

  • 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

  • Create a Print button to Print a specific PDF File

    Hi,
    Need help with scripting. I'm creating a Menu Page where in I list the PDF files and right beside it put a PRINT BUTTON which of course will print that specific PDF file. Is this doable or not?
    Thanks.
    VicZam

    For more information on the print method, see: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.511.html
    Note the nStart and nEnd parameters in particular.

  • Creating a print button to print chart.

    Hi everyone, I created a button to print my module.
    The button works great. It pops up the Print Window and
    prints my module.
    but if I cancel the print dialog without printing, my module
    automatically unloads.... ?
    Is there anyway I can by pass this?
    Thanks!

    Flash Catalyst does not directly support printing. You are going to have to add that functionality via Flash Builder and writing ActionScripting. I have not worked with the printing capabilities in Flex, so there is not a lot I can offer past this in terms of advice.I would suggest browsing the Flex forums for some guidance on how to assemble your state for the printer.
    Good luck!
    Chris

  • Creating a print button to print a page from another document - is this possible?

    Hello,
    My company is designing an interactive pdf with indesign with some great navigation on a side-bar. We've made the dimensions of the navigation pages larger than 8.5 x 11. We are constructing a pdf portfolio that contains a printable version of this document and this interactive version. Would it be possible to have a print button in the interactive document that calls up the corresponding page in the printable document and send it to the printer?

    Flash Catalyst does not directly support printing. You are going to have to add that functionality via Flash Builder and writing ActionScripting. I have not worked with the printing capabilities in Flex, so there is not a lot I can offer past this in terms of advice.I would suggest browsing the Flex forums for some guidance on how to assemble your state for the printer.
    Good luck!
    Chris

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

  • How do I make a print button that prints "current page" as default

    I am working in Adobe Acrobat Professional 7.0 and have created "print
    buttons" in the pdf document I am working in. The print dialog box has "print all" automatically selected as the current default. How can
    I create buttons that bring the user to the print dialog box automatically selected at "print current page?" I want the user to hit
    the print button and have it automatically print the single page that they are viewing only, so that no one will accidentally print the entire book.
     

    You might also check these forums
    Acrobat Scripting Forum http://forums.adobe.com/community/acrobat/acrobat_scripting
    Acrobat SDK Developer Forum http://forums.adobe.com/community/acrobat/acrobat_scripting

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

  • 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

  • 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

  • Enable print button in print preveiw of smartform

    Hi All,
             I have a requirment to display the spool. (print program and smartform).  But while displaying the spool the PRINT option in menu and PRINT button is not active in the output.  Is there any way to enable the print option while displaying a spool.
             I am using the following function module for dispalying the spool.
    'RSPO_RID_SPOOLREQ_DISP'.
    Is there any particular parameter i need to pass while calling the smartform ?
    Please give some suggestions...
    Thanks in Advance
    Jijeesh.P.G

    Hi,
    Check the tcode SPAD
    Click on Full Administration Push Button
    and Check Device Types tab.
    All the Print control options of the spool are maintained.
    Reward if useful....

  • Print button in Print view not working; how can I get it to work normally again?

    Please help: a few weeks ago, my Print button was working fine, then I imported a few 3rd party print templates, and now the Print button is not a clickable option. I've removed the 3rd party templates but it still does not work  (see button in bottom right hand corner) - how I can make the print button work again? Please advise..

    Because it is set to print to a JPEG File instead of send to a Printer. Change the Print To: pulldown in the Print Job panel to "Printer"

  • Print button that prints particular pages of form

    Hi, I'm not familiar with scripting, but I'm thinking a script might be necessary for what I want to do.  I have a form that is 4 pages long.  The first two pages are instructions, the last two are the actual form.  Can I add a print button to the document that will print the last two pages rather than the entire document?  And would the button need to be on the 3rd page (top of the actual form) or the 4th page (end of form)? Thanks!

    Can I add a print button to the document that will print the last two pages rather than the entire document? 
    Yes.
    // form1.page1.printBtn::click - (JavaScript, client)
    xfa.host.print(1, "2", "3", 0, 0, 0, 0, 0);
    And would the button need to be on the 3rd page (top of the actual form) or the 4th page (end of form)?
    The print button can go anywhere.
    Steve

  • No print button in print screen

    There is not a print button in the priont screen

    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.
    If 10.7.0 or later...
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.

Maybe you are looking for