Code for PRINTING

I have created a form with a button that runs a javascript to print the document (ACROFORM) and added the code to the button's Javascript Mouse Up :
this.print(false, this.pageNum, this.pageNum);
this.print({bUI: false, bSilent: true, bShrinkToFit: true});
When I press the button, a "SAVE AS" window opens and says "Save the PDF file as..." Note : The console Debugging is empty (no error messages) and the default printer on Windows Print Parameters is my printer Canon.
This other code also yields no results :
var pp = this.getPrintParams();
pp.interactive = pp.constants.interactionLevel.silent;
pp.colorOverride = pp.constants.colorOverrides.mono;
pp.firstPage = 0;
pp.lastPage = 0;
this.print(pp);
Again, the same message and the same problem = DOES NOT PRINT.
What is wrong?? Any clues?
Thank you,
Maleck

is there a way to alter this so that it could automatically print a 'variable' that would be in the filename? For instance a file named "4 6 ee-235-912", only pages 4 and 6 would get printed (so page, ..., page, name space delimited)?
And then I would like a way to make some sort of bat file or something, just a simple script that would do this function automatically (so is there a way to access the custom function/macro via the commandline? ie "acrobat.exe filename.pdf -o optionRunMyMacro"

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?

  • Code for printing swf

    I am looking for code to print the several frames of an swf
    with one button click. Does anyone have any code for this? If I
    have labels and use #p on a label layer will it mess up calling my
    other labels?
    Many thanks in advance!

    if you're using Flash 7 or higher, have a look at the
    PrintJob class and the examples in the help. This class avoids
    requiring labels on frames you want printed. it also can send
    several pages at once to the printer, meaning the printer's
    dialogue box only appears once.

  • Indesign CC preset codes for printing

    with the update for Indesign CC, it is not holding my preset codes used for printing different documents. Any clues on this?

    Another way of looking at it: you can work out effective ppi by counting pixels and using a ruler.
    Use the ruler to see the size on the FINAL printed page. Perhaps your picture measures 2 inches high by 3 inches wide  on the paper. That's the effective size of the picture. Of course you don't need a ruler, but you need to understand that is what you are measuring.
    Now, an image is so many pixels wide (and high, but let's just talk wide). Perhaps your image is 600 pixels wide.
    So we have two figures
    width in pixels = 600
    effective width in inches = 3
    What do we do with this? Divide the first figure by the second to get pixels per inch.
    pixels per inch = width in pixels / effective width in inches = 600 / 3 = 200.
    You can do the same for height; ideally you get the same answer but you won't always; use the lowest number.

  • Fct codes for PRINT , FIND ,FIND next

    hi,
    my requriement is I have to exclude PRINT,FIND and FFIND NEXT from my screen.
    for that I need set pf-status excluding itab.
    I have to take an internal table with these function codes.
    help me its urgent

    Hi sudha ,
    List Events in an ABAP Program
    After a user interaction on a list, the ABAP runtime environment checks whether it should process the function code itself (for example, %EX or %PC), or whether it should trigger the relevant event. Unlike normal screens, in which the PAI event is triggered, the runtime environment triggers three special events when list events occur. You can use the corresponding event blocks in your ABAP program to react to the user action. From within the program, you can use the SY-UCOMM system field to access the function code. There is no OK_CODE field that is filled.
    Event Blocks for Function Codes PF<nn> (Obsolete)
    When the user chooses a function code PF<nn> (<nn> can be between 01 and 24), the system always triggers the AT PF<nn> event. In the standard list status, the function keys F<nn> that are not reserved for predefined system functions all have the function code PF<nn> as long as a corresponding event block is defined in the program.
    AT PF<nn>.
    <statements>.
    These event blocks are executed when the user chooses the corresponding function key. The position of the cursor in the list is irrelevant.
    If you use these event blocks at all, it should only be for temporary test versions. In production programs, you should only use AT USER-COMMAND with a dialog status of your own to assign function codes to function keys. When you use your own interfaces, the system displays a function text explaining what the function does. This does not happen when you use AT PF<nn> event blocks.
    Event Block for Function Code PICK
    When the user triggers the function code PICK, AT LINE-SELECTION is always triggered if the cursor is positioned on a list line. The function code PICK is, by default, always linked with function key F2 and hence with the mouse double-click. Consequently, if you have a simple program that does not react to any further user actions, you only need to write this event block.
    AT LINE-SELECTION.
    <statements>.
    As described in the section Dialog Status for Lists, the function code PICK is always added to the standard list status when you have an AT LINE-SELECTION event in your program.
    If you assign PICK to other function keys or menu entries, AT LINE-SELECTION is also triggered when the user chooses then. You should avoid this for the sake of the semantics.
    Conversely, if you have a more extensive program that does not react to line selection, you should not use the function code PICK. Instead you should assign a different function code to F2 , to ensure that as many events as possible trigger the AT USER-COMMAND event.
    Event Block for User-Defined Function Codes
    If the user chooses a function code during list processing that is neither processed by the system, or PICK or PF<nn>, the system triggers the event AT USER-COMMAND. For this event, you must define your own GUI status for a list. To react to your own function codes in a program, you must define the following event block:
    AT USER-COMMAND.
    <statements>.
    In this event block, you can use an IF or CASE structure to tell the function codes apart. They are available in the system field SY-UCOMM. There are further system fields that are filled in list events, such as SY-LSIND and SY-PFKEY, that allow you to make further case distinctions.
    Triggering a List Event from the Program
    You can trigger a list event from the program as follows:
    SET USER-COMMAND <fc>.
    This statement takes effect after the current list is completed. Before the list is displayed, the event assigned to function code <fc> is triggered, regardless of the dialog status you are using.
    The effect is the same as when the user chooses the function. In other words, predefined list function codes are trapped and processed by the runtime environment, the function codes PICK and PF<nn> trigger the AT LINE-SELECTION and AT PF<nn> events, and user-defined function codes trigger the AT USER-COMMAND event block.
    Function code PICK triggers an event only if the cursor is located on a list line.
    Using this statement in conjunction with the function codes reserved for system functions, you can call the system functions from the program. For example, you can use SET USER-COMMAND '%SC' to call the Find dialog box directly, or to position the list correctly before it is displayed.
    If you use several SET USER-COMMAND statements while creating a list, the system executes only the last one.
    Examples
    Example for AT LINE-SELECTION.
    REPORT demo_list_at_line_selection.
    START-OF-SELECTION.
    WRITE 'Basic List'.
    AT LINE-SELECTION.
    WRITE: 'Secondary List by Line-Selection',
    / 'SY-UCOMM =', sy-ucomm.
    When you run the program, the basic list appears with the standard list status. The detail list shows that SY-UCOMM has the value PICK.
    Example for AT PF<nn>.
    REPORT demo_list_at_pf.
    START-OF-SELECTION.
    WRITE 'Basic List, Press PF5, PF6, PF7, or PF8'.
    AT pf5.
    PERFORM out.
    AT pf6.
    PERFORM out.
    AT pf7.
    PERFORM out.
    AT pf8.
    PERFORM out.
    FORM out.
    WRITE: 'Secondary List by PF-Key Selection',
    / 'SY-LSIND =', sy-lsind,
    / 'SY-UCOMM =', sy-ucomm.
    ENDFORM.
    After executing the program, the system displays the basic list. The user can press the function keys F5 , F6 , F7 , and F8 to create secondary lists. If, for example, the 14th key the user presses is F6 , the output on the displayed secondary list looks as follows:
    Secondary List by PF-Key Selection
    SY-LSIND = 14
    SY-UCOMM = PF06
    Example for AT USER-COMMAND.
    REPORT demo_list_at_user_command NO STANDARD PAGE HEADING.
    START-OF-SELECTION.
    WRITE: 'Basic List',
    / 'SY-LSIND:', sy-lsind.
    TOP-OF-PAGE.
    WRITE 'Top-of-Page'.
    ULINE.
    TOP-OF-PAGE DURING LINE-SELECTION.
    CASE sy-pfkey.
    WHEN 'TEST'.
    WRITE 'Self-defined GUI for Function Codes'.
    ULINE.
    ENDCASE.
    AT LINE-SELECTION.
    SET PF-STATUS 'TEST' EXCLUDING 'PICK'.
    PERFORM out.
    sy-lsind = sy-lsind - 1.
    AT USER-COMMAND.
    CASE sy-ucomm.
    WHEN 'FC1'.
    PERFORM out.
    WRITE / 'Button FUN 1 was pressed'.
    WHEN 'FC2'.
    PERFORM out.
    WRITE / 'Button FUN 2 was pressed'.
    WHEN 'FC3'.
    PERFORM out.
    WRITE / 'Button FUN 3 was pressed'.
    WHEN 'FC4'.
    PERFORM out.
    WRITE / 'Button FUN 4 was pressed'.
    WHEN 'FC5'.
    PERFORM out.
    WRITE / 'Button FUN 5 was pressed'.
    ENDCASE.
    sy-lsind = sy-lsind - 1.
    FORM out.
    WRITE: 'Secondary List',
    / 'SY-LSIND:', sy-lsind,
    / 'SY-PFKEY:', sy-pfkey.
    ENDFORM.
    When you run the program, the system displays the following basic list with a the page header defined in the program:
    You can trigger the AT LINE-SELECTION event by double-clicking a line. The system sets the status TEST and deactivates the function code PICK. The status TEST contains function codes FC1 to FC5. These are assigned to pushbuttons in the application toolbar. The page header of the detail list depends on the status.
    Here, double-clicking a line no longer triggers an event. However, there is now an application toolbar containing five user-defined pushbuttons. You can use these to trigger the AT USER-COMMAND event. The CASE statement contains a different reaction for each pushbutton.
    For each interactive event, the system decreases the SY-LSIND system field by one, thus canceling out the automatic increase. All detail lists now have the same level as the basic list and thus overwrite it. While the detail list is being created, SY-LSIND still has the value 1.
    Example for SET USER-COMMAND.
    REPORT demo_list_set_user_command NO STANDARD PAGE HEADING.
    START-OF-SELECTION.
    SET USER-COMMAND 'MYCO'.
    WRITE 'Basic List'.
    AT USER-COMMAND.
    CASE sy-ucomm.
    WHEN 'MYCO'.
    WRITE 'Secondary List from USER-COMMAND,'.
    WRITE: 'SY-LSIND', sy-lsind.
    SET USER-COMMAND 'PF05'.
    ENDCASE.
    AT pf05.
    WRITE 'Secondary List from PF05,'.
    WRITE: 'SY-LSIND', sy-lsind.
    SET CURSOR LINE 1.
    SET USER-COMMAND 'PICK'.
    AT LINE-SELECTION.
    WRITE 'Secondary List from LINE-SELECTION,'.
    WRITE: 'SY-LSIND', sy-lsind.
    SET USER-COMMAND '%SC'.
    This program creates one basic list and three detail lists. When the program starts, the third detail list is displayed immediately, along with a dialog box for searching in the list. The dialog box is displayed by setting the predefined function code %SC. To view the other lists, the user chooses Back.
    Note that in the event AT PF05, the SET CURSOR statement is used to position the cursor on a list line in order to support the function code PICK.
    I think this will solve u r problem.
    Reward points if useful..
    Regards
    Nilesh

  • Pass code for printer

    Is it possible to set a passcode for printers at SAP level?

    That is not a SAP standard funtionality, that can be easily done from the printer side if your printer support it.
    Regards
    Juan

  • Need code for PR and me49

    hi all
    i need the z program code for printing pr that is ME51n and also the code for the z prorgram for price comparision list me49

    Hi
    i need source code of  program to print th e pr generated via me51n . In standard sap this is not possible to take out the print of the PR as it is an internal document now pepole say  that try to convince the Client .............but i need that code if somebody can please share that here

  • Pb for printing elements values

    This modified sample code for printing elements values doesn't seems to work ?
    an idea ? VALUE is always empty !
    -- prints elements in a document
    procedure printElements(doc xmldom.DOMDocument) is
    nl xmldom.DOMNodeList;
    len number;
    n xmldom.DOMNode;
    begin
    -- get all elements
    nl := xmldom.getElementsByTagName(doc, '*');
    len := xmldom.getLength(nl);
    -- loop through elements
    for i in 0..len-1 loop
    n := xmldom.item(nl, i);
    dbms_output.put_line('TAG ' &#0124; &#0124; xmldom.getNodeName(n));
    dbms_output.put_line('VALUE ' &#0124; &#0124; xmldom.getNodeValue(n)); -- Added line
    end loop;
    dbms_output.put_line('');
    end printElements;
    null

    getNodeValue() for elements will always be null since elements do not have a node value.
    Attribute nodes have a value <foo attr="yes"/>
    Text nodes have a value.
    Comment nodes have a value.
    PI nodes have a value.
    So, where you are asking for the
    value of an element, you likely
    intend to be getting the
    value of the Text node child
    of that element as in:
    <foo>Some Value</foo>
    The <foo> element has no value, but
    it has a Text-Node child with
    a value of "Some Value"

  • HOW TO FIND T-CODES FOR SCRIPT FORMS?

    HI EVERY BODY,
    "ME9F" IS THE T-CODE FOR PRINTING "MEDRUCK" FORM ALONG WITH THE DATA FROM PRINT PROGRAM.
    LIKE WISE WHAT ARE ALL THE OTHER T-CODES FOR SAP PROVIDED FORMS. PLEASE LET ME KNOW HOW TO FIND THESE T-CODES?
    THANKS IN ADVANCE,
    REGARDS,
    MOUNIKA.

    Hi Mounika,
    Please check this transaction as well.
    ME9A  - Message Output: RFQs                 
    ME9E  - Message Output: Sch. Agmt. Schedules 
    ME9F  - Message Output: Purchase Orders      
    ME9K  - Message Output: Contracts            
    ME9L  - Message Output: Sched. Agreements    
    PJNA  - Message Output                       
    WLN14 - Message Output Agency Documents      
    WLN15 - Message Output for List Documents   
    Hope this will help.
    Regards,
    Ferry Lianto

  • How to print claim code for envy 5530 without connecting to internet?

    how to print claim code for hp envy 5530 without connecting to internet. We do not have wireless internet and we are trying to set up the eprint app for our samsun android phones and ipad. We need to print off the claim code from the printer but it seems we need to have internet for that. is there any way around that?
    Thanks

    Hi,
    You have to, without connecting to the internet, the claim code (if you can get one) is useless.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • The page with the code for my printer has expired and I need to print a new one but can't figure out

    How do I print out a new sheet with code for wireless setup?

    Are you talking about the IP address or the Mac Address of the printer? If you go into the setup menu you can go to reports or the network for the wireless information depending on what code you are looking for......
    Although I am an HP employee, I am speaking for myself and not for HP.

  • I can't print out my claim code for my HPDeskjet 2540 All-In-One printer.

    So i have been trying to get the claim code for my printer for the past hour and i seem to not be able to get the code. I want to set up my printer with eprint but in order for me to be abe to get theoption i got to input the claim, which i cant print or get any where. I have tried calling HP cloud service and waited for like 20mins just for them to tell me to call back tomorrow. If any one can help me in showing me how to get the code will be reatly appriciated. Thanks.

    Hi,
    Given your printer has a claim code, please ue the following method:
    Option one: If you see an ePrint buttonOn the printer control panel, press the ePrint ( ) button to open the Web Services menu.
    If Web Services is enabled , touch Print Info . An information sheet prints that has your claim code.
    If Web Services is not enabled , touch OK to accept the terms of service, and then touch OK to accept the update. An information sheet prints that has your claim code.
    Option two: If you see a Setup iconOn the printer control panel, touch Setup ( ), and then touch Web Services Settings .
    If Web Services is enabled , touch Print Info . An information sheet prints that has your claim code.
    If Web Services is not enabled , touch Continue , touch Yes to accept the terms of service, touch Yes to accept the update, and then touch Print Info . An information sheet prints that has your claim code.
    Source: http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&dlc=en&docname=c03550536#N79
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How do i get a valid printer code for h470?

    I see that my printer is able to use eprint, but I cannot find any information on how to set this up and enable web services or ePrint.  
    My ultimate goal is to enable my mobile devices (tablet and phone) to be able to print. I see that the only way for my bluetooth printer to be able to print is to get an app that uses google cloud printing.  I can't enable this printer for google cloud printing unless it is enable for eprint.  
    Any assistance would be appreciated.

    Hi,
    Sorry, now must be the right one:
       http://h10025.www1.hp.com/ewfrf/wc/manualCategory?cc=us&lc=en&dlc=en&document=&product=3434455.
    Please read the second one first, looks like it does not have a code for ePrint.
       http://h10032.www1.hp.com/ctg/Manual/c01273251.pdf
    Based on the following list, you actually need HP ePrint Mobile App and HP ePrint Home & Biz.
     http://h30434.www3.hp.com/t5/ePrint-Print-Apps-Mobile/Cloud-Services-Supported-Printers-ePrint-Airpr...
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Print Bar code for inspection report

    Dear all,
    I have a requirement for printing bar code in the inspection report. Normally, we use QGA3 print inspection report which based on the script form. Now as I would like to add bar code, as I know, I have to use smart form to realize. but it can just enter Form in the standard way. So could anyone give me some useful suggestion to realize this requirement?
    Thanks a lot.
    Best regards,
    Benny.

    Hi,
    Identify corresponding form.In the character format we have to define the bar code and assign that one infornt of which we need the bar code.
    eg:
    SE71 screen if you go the character
    there below you will get the bar code
    specify one character for that bar code and
    in place of which u want to print place it.
    for eg u have character specified as bb,
    and in place of Inspection lot (w_lot) you want to have bar code
    the just type.
    <bb>w_lot</>, this will print the bar code for instead of inspection lot
    Regards,
    Krishna Mohan
    Edited by: Krishna Mohan N on Jan 22, 2008 7:26 AM

  • No data selected for printing in production server t.code J1INCERT

    Dear Gurusl,
    I am facing a issue to tds certificate printout through t.code J1INCERT in production server. My client has booked the invoice in the month of march 2011 & remittance, bank updation is done in the month of 30th Apr. 2011. But while taking the printing out it the error No data selected for printing 8000I. So I need some permanent solution.
    For invoice booking fiscal year is 2010 & remittance, bank updation it is 2011.
    Regards
    Sachin Patil

    Dear:
               Check whether you have selected the relevant tax types for invoice posting while posting the vendor invoice. If its correct then Vendor Master data, Section/Business Place code Address data. Check tables in SE11
    J_1IEWT_CERT_N
    J_1IEWTCALID_N
    J_1IEWTNUMGR_N
    In these tables section codes might have been maintained directly. Please check these for any discrepancies.
    Regards

Maybe you are looking for

  • Prompted to update iTunes today and now it does not work.  tried reinstalling and caanot successfully reinstall.

    prompted to update iTunes today and now it does not work.  tried reinstalling and caanot successfully reinstall.

  • I cannot place an electronic signature in a document with form fields?!

    I have Acrobat Pro installed on a windows 7 and windows 8.1 machine. On both I have lost the ability to place an electronic signature (Draw my signature) and only have the option for a digital signature. The problem is remedied if I print to pdf but

  • Problems with ExcludeDoclet and Ant

    Greetings. I've been trying to use the ExcludeDoclet (http://java.sun.com/j2se/javadoc/excludedoclet/index.jsp) to generate docs for the classes that aren't excluded. My ant task looks like this: <target name="javadoc" depends="init"         descript

  • Exit Code: 15

    i have recently bought CS6 but it seems that i have a problem when i am trying to install this onto my laptop when i start the installation it reaches 2% then comes up saying that there is an inconsitancy in the installer database, I keep on getting

  • Elements 10 not loading actions anymore?? HELP!

    I've had PSE 10 for a while now, and have lots of actions (about a dozen) loaded in from the internet.  They've been working fine for about a year, and all of a sudden they stopped showing up in the effects panel!  For no reason.  I have done nothing