Print button A:S help..

ok this has been making me very angry ive searched everywhere
and only found this code
_root.print.onRelease = function() {
var pri = new PrintJob();
pri.start();
pri.paperWidth = 800;
pri.paperHeight = 600;
and the other people typed up that it worked for them so why
not for me?
and i keep getting this error
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1:
Statement must appear within on handler
_root.print.onRelease = function() {
Total ActionScript Errors: 1 Reported Errors: 1
how do i fix it and they also said i needed to name the
instance printer and i did and yes i spelled it right.. so whats
the deal? why am i getting this error? oh and i am also using flash
8 can someone please help me..

This error means your code is not being applied to your
button. You must have your button selected when you type in the
code.

Similar Messages

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

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

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

  • Epson Print CD  print button Gary out / W, snow leopard - please help.

    please help. after download snow leopard epson print CD is not working. i deleted all epson software from my application and download new epson software from their website. 10.6 and i was trying to use epson print cd ver2.0 and print button is gray, so i can't able to print cd... i restarted my computer. and i did update print information from epson print cd. is there way i can use this new epson print cd with my snow leopard? anybody out there have some information? thank you very much!

    Hi
    I had the same problem with my MB Pro and an Epson Stylus Photo PX700W printer after upgrading to snow leopard.
    I got onto Epson tech support and was advised to do the following (which worked by the way!)
    1) Delete the Epson printer from the "Print & Fax" utility in the "System Preferences"
    To do this, open "Print & Fax" and choose the epson printer in the left hand pane under "printers".
    Then hit delete
    2) Go to the Epson support site and download the latest drivers for your printer
    URL = http://www.epson.co.uk/support
    3) Enter your printer type and on the following page choose "drivers and software"
    4) I personally downloaded the driver plus the Print CD application although I believe it may have been the same version as the one I already had installed.
    5) Once the driver package is downloaded use the installer and install as normal
    6) Once installed go back into "Print & Fax" and choose the + button under the printer left hand pane to choose a new printer.
    In my case the printer was found on wifi using bonjour and I just chose it
    7) launch the "Print CD" app and try to print
    In my case all the options that had been greyed out had returned and I was once most able to print to CD/DVDs
    I hope this helps

  • 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

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

  • 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

  • Print presentasion without Print button on printout

    We want print presentation and eliminate Pint button from printout.
    We tried many ways:
    1) We put in presentation initialization method a statement setVisible: false and print.this. Unfortunately a button still visible on printout.
    2) We wrote a new method for a Print button: setVisible:false, print.this. Again a button is visible in the printout.
    3) We make a presentation without buttons at all and tried to put print statement in initialization method. Now we lose a control of the buttons and cannot terminate a presentation.
    4) We make a presentation without buttons at all and tried to put print statement in initialization method and immediately cancel a presentation with submit(). Again we lose a control of the presentation.
    May be some of you can give us a helping hand.
    Thanks in advance.
    Igor

    If you got any update please send it to me.
    my email id is [email protected]
    Thanks,
    Brijesh Kumar Singh

  • Need to make a print button in indesign

    hi
    I need to make a print button in indesign for a brochure. I have made several buttons by using the create button toll but there is no 'print' option in the list of behaviours.
    can anyone help me with this please.
    The final output is a pdf and the brochure has a print button on every page.
    Can anyone help please

    You can duplicate any form field to all the pages you like... to all pages or just some pages.... Forms>Edit Fields>Duplicate

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

    Hello everyone,
    In order to 'flatten' our pdf forms so that they cannot easily be modified, we have decided to print all of our completed forms to a virtual .pdf writer. Now, we could have all of our users click file-->print-->select 'cutePDF Writer' from the printer drop-down-->hit OK-->Type in a file name for the new .PDF-->hit OK... but I was hoping that I could make their lives easier by adding a button to do most of this for them.
    After scowering the depths of the internet, I found this script that I've added to the click event of a button:
    var objPrintParams = event.target.getPrintParams();
    objPrintParams.interactive = objPrintParams.constants.interactionLevel.silent;
    objPrintParams.printerName = "cutePDF Writer";
    event.target.print(objPrintParams);
    This effectively handles everything up to 'Type in a file name for the new .PDF' step... but there are some issues.
    The first is that some of our users may not have cutePDF installed. As it is, the script doesn't throw an error if the printer does not exist. Without the printer installed, clicking the button seems to have no effect. Both pre- and post-print events fire as if the printing worked, even though it didn't. I would like to have a helpful message for the user, but I can't think of a way to check if it failed. If I could get a list of printers, I could check it before trying to print... but event.target.printerNames(); doesn't work, and that was the only thing that i could find to list printer names.
    The second issue is that a message is displayed to inform the users the the document is trying to print. "This document is trying to print..." I get that this is a security measure, but the user is pressing a button called print, and having to click a second time may get annoying. Additionally, if they click no by accident, this response is stored until they restart reader... clicking the print button again does nothing.
    Ultimately, I'd like to get rid of this message... but if I can't do that, I'd like for it to show each time that the user presses it, both for consistancy, and to allow them to change their minds without having to close out reader, losing all of the filled fields that they entered.
    I know that this might be asking the impossible, but I would appreciate any help with this.
    - Scott

    In the designer, highlight the print button. On the Object palette locate the presence dropdown (near the bottom of the palette). Change the pressence to "Visible (Screen Only)".

  • How to add Print button on Webhelp in Robohelp 10?

    Can someone please provide step-by-step instructions to add Print button on Webhelp. I'm currently using Robohelp 10. I saw some suggestions using javascript in skin, but there isn't a step-by-step procedure available.
    I have been seraching for this from past many days. It'd be of great help to me. Thanks!

    Thank you very much for your quick reply. It was really helpful. However, I still can't see the button the webhelp output. 
    1. Created a new skin
    2. In the new skin, I added this print button and followed all steps explained (adding inline javascript and calling the function in the action tab under onClick, etc)
    3. I could see the preview of this being perfectly fine.
    4. But, when I generated the output by compiling it again, I could not see the changes I made in the webhelp
    4. I am thinking I am missing a crucial step. Is the new webhelp using the new skin? How to know this?
    5.  I carried out all the steps as explained, except this "Don't forget to tick the Print button in the second page of the wizard". Could you please let me know which wizard this is and where is the check box to tick the print button?
    I am eagerly waiting for your answer. Thanks!

  • Adding PRINT Button on a List Item Page

    Hi,
    We have an existing custom list for our asset tracking. We are required to make the list item's page printable by adding a "PRINT" button on it. Currently, a list item's page has a "Close" button together with the following tabs such as: "New Item", "Edit Item", "Delete Item", "Manage Permissions", and "Alert Me". "Print" button should be like the "Close" button. Once the "Print" button will be click then a "Print" window will appear to select the printer to use. It will print only the list item's content and not the whole page.
    Is there anyone who implemented as what describes above? Please help me how to implement this.
    Thank you in advance.
    Jack

    Hi,
    You can refer to the following two articles to add a "print list" option to the list actions menu:
    How to add a "print list" option to the list actions menu
    http://www.sharepoint-tips.com/2007/01/how-to-add-print-list-option-to-list.html
    List Print Templates - Beta1
    http://www.codeplex.com/sharepointtemplates/Release/ProjectReleases.aspx?ReleaseId=6018
    Hope this helps.
    Rock Wang
    Rock Wang– MSFT
    Hi Rock,
    Thank you for giving those links.
    I checked it and it was almost the same with Andre's posting. I did not try to install since as i understand, i need to do it in the server that hosted our portal which i'm afraid of doing it. I'm not an advanced user of sharepoint so i'm very careful of doing changes or enhancement to our portal.
    Jack

  • Disabling Print button on report

    Can sm1 help me how 2 disbale print button on report
    tia

    Hassan,
    I am not sure if this is possible. Can you ask this question in the Reports forum here on OTN.
    Frank

Maybe you are looking for

  • Merging Excel data into a form created in LiveCycle

    Hello, I've made a form in LiveCycle.  The first of the 5 pages I want to pre-populate with data before I distribute the final form.  My data is in Excel and I have ensured that the header titles match the field names on the form.  Could someone help

  • Formatted search with UDF and syntax question

    Can you explain the syntax with when to use the dollar sign and negative in writing a query for a formatted search based on user entry? I now want to create a formatted search to pull values based on the user's entry into a UDF on the item master scr

  • I installed the latest update for photoshop CC but the new options (like spin or path blur) are still not active. What to do?

    Yesterday,  installed the new updates for Photoshop CC. Photoshop tells me that it is up to date with all updates installed but still I can't use them, e.g. the blur gallery doesn't show the spin or path blur. Other new options are also not working.

  • Jdeveloper Fails to load PG file

    Hi All, I am using jdeveloper version 9.0.3.11.31 for OA-Framework application development. When i try to run an xml file in, it compiles fine but gives me the following error Failed to load "file:/D:/xxx/myprojects/xxxxx/oracle/apps/xxxxxxx/xxx/xxxx

  • Data grid issue

    Hi, i'm working on HFM 11.1.1.3 ,i loaded several flat files for data grid but i'm not able to see them in documents section,i loaded one custom document also, i tried several times but still its showing empty what can i do? please help me out Thanks