How to set to print to a specific printer name

Background:
I have a form (one page) which has two hidden pages to it (front and back of certificate).  The details entered on form appear on certificate.  I have a hidden button on form which when pressed asks for a password and unhides certificate if correct password is entered as well as a button on form to print the certificate.  This button to print the certificate is preset to print only pages 2 and 3.
Question:
I would like to know if there is a way of setting the "print certificate" button to automatically select a printer name as forms can be printed on any local printer but the certificate needs to print to a specific printer which is colour and has card stock.
The only code I have currently behind this print button is the following:
xfa.host.print(1, (xfa.host.numPages -2).toString(), (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);

Hi,
I am fairly sure that you cannot do it using the xfa.host.print, but you may get a printParams working. See an example here https://acrobat.com/#d=Kuivy1SdOSbQnRs3kyeVDQ, in particular on page 2.
Hope that helps,
Niall

Similar Messages

  • How to Set up Print As Image Registry Default.

    This is a response to the archived post at:
    martin hrubes, "How to customize printing by registry - print as image" #, 6 Nov 2007 2:28 am
    I was trying to find out how to set the "Print As Image" advanced setting to be enabled by default. Here is what I discovered through trial and error.
    1. The setting is stored per user and per printer. (i.e. it has to be set for each printer for each user.)
    2. The registry setting is stored in the following key:
    [HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\8.0\General\cPrintAsImage]
    3. In this key, each printer has a separate binary value named s0, s1, s2, etc. The number increments by 1 for each printer added. If you open the value data, you will see it contains the name of the printer encoded in hex. (ex. hex coded for \\Server\Printer1)
    My recomendation is to open a pdf file in reader, go to File -> Print ->Select Desired Printer -> Click "Advanced" Options -> Enable "Print As Image" -> Click OK - Click OK again. Repeat for each printer you want to
    change.
    **NOTE** If you don't click OK both times (i.e. cancel the print dialog), the change will not be saved. You have to actually print something to the printer. If you don't want to print something, make sure the printer is offline or not accessible (unplug the network, usb, parallel, serial cable) first. Once the printer has been changed, it will keep the setting until to you change it.
    After you have set-up all of the desired printers, open RegEdit and navigate to the above key. Right click on it, and export it. Note the file name and location you are saving to. Close RegEdit. "Edit" (Right Click) the file just exported ("Opening" the file will just import it back into the registry.). Once opened, highlight and copy the registry key and all of the registry values. Paste the key and values at the end of the file. In one of the keys change "HKEY_CURRENT_USER\" to "HKEY_USERS\.DEFAULT\". Save and exit the file.
    When imported this file will enable the "Print As Image" setting for the currently logged in user plus add the setting to the default users profile so any new users to the machine will have it enabled by default also. However, it will not add it to any other user profiles that already exist on the computer. To do this, either use a login script for domain computers or add the reg file to the "All Users Startup" folder.
    It would be nice to have a setting in the deployment custimazation wizard to handle this, but for now we're stuck with enabling it the hard way.

    Yes Spyla, please see this link http://www.404techsupport.com/2008/09/09/make-adobe-reader-and-adobe-acrobat-use-print-as- image-setting-by-default-2/comment-page-1/#comment-3112.
    Allan, many thanks for your post, it certainly helped point me in the right direction.  what I found though is that you do not need to tick the print as image box at any point during the setting up of this.  All you need to do is add the registry key for whichever version of Adobe you are using for this to work.  So basically. what you are saying for each instance of Adobe is regardless of whether or not the print as image is selected, the registry key is saying always print as image for the printer as specified by the hex code. I have found that for network printers, you have to include the full path i.e. \\<servername>\<printername> e.g \\testserver\printer1 and convert all of that to hex. With later versions (9 up over), they have allowed for the string name of the printer so that it is just plain text which also makes life easier.
    What I do is apply this registry entry via Group Policy on a per room basis so that we only ever need to add one printer to the list.  you could do this globally by adding all printers sequentially using s0, s1, s2 or t0, t1, t2 etc depending on which version you are using.  The screenshot shows the registry key for 1 printer for Adobe Reader 8.
    The value data is the binary code for the actual full printer name
    This works a treat.
    Hope this helps
    Thanks

  • How to set default print orientation in oracle reports 6i?

    Can anyone please help how to set default print orientation of Oracle Reports 6i? Currently document is printed in Portrait orientation, but I need to print it in Landscape orientation. Is this possible?

    It is solved now. Go to Layout Model -> Main Section, Press F4. In the property pallet select the Orientation that is required to be selected when print is taken for that report.

  • How to set up printer from ipad?

    how to set up printer from ipad?
    Johs.

    iOS AirPrint Printers  http://support.apple.com/kb/HT4356
    How to Print from Your iPad: Summary of Printer and Printing Options
    http://ipadacademy.com/2012/03/how-to-print-from-your-ipad-summary-of-printer-an d-printing-options
    Print from iPad / iPhone without AirPrint
    http://ipadhelp.com/ipad-help/print-from-ipad-iphone-without-airprint/
    How to Enable AirPrint on a Mac and Use Any Printer
    http://ipadhelp.com/ipad-help/how-to-use-airprint-with-any-printer/
     Cheers, Tom

  • How to set wireless printer at ad Hoc mode in CP1025nw with auto-off is off?? ie never auto-off!!

    How to set wireless printer at ad Hoc mode in CP1025nw with auto-off is off?? ie  never auto-off!!
    Thank you very much for your help if any!!
    This question was solved.
    View Solution.

    Quite a few questions there, Sends, but I will do what I can to answer them. 
    I would first recommend buying a router, even if it is one that you won't connect to the internet and network this with your other PCs and the printer. This will give you the best functionality and results for what you are attempting to do. 
    Additionally, the Auto Off feature of the printer can be disabled, and is not affected by the connection type. You can usually go through the Setup Menu and select Tools to change the options there on the energy saving features. 
    Lastly, the auto off feature on your computer is a Windows question, but an easy one to answer. If you are on a laptop you can right-click on the battery in the service tray (bottom right hand corner) and change the energy conservation settings. 
    You might be better off installing the printer through the USB cord and alternating that based on when you are using it, but that would be optimal only if you are printing only a few documents on an irregular basis. A networked connection is the easiest to manage over several computers, honesty, but you do have some requirements for that connection and limitations as well.
    I hope this information is useful! 

  • How to set default printing in black only

    Greetings,
    I'd like to set my default printing with Firefox at black ink only, which I can do individually prior to printing a page, but it reverts to color after that printing. But if I set the size at, say, 80%, that becomes the default setting, or if I set portrait/landscape for a single printing, that becomes the default setting. Why can't the desired black-ink only setting default like the size/portrait/landscape setting? What I want to do is set the printing permanently at black only, and the size at 100%, but allow one-time printing at landscape or portrait, or sizes less than 100% without those settings becoming the default. How can I do this? Thanks for any help
    Best wishes, Tom
    I've tried the help solutions on the website to no avail....

    Greeting ideato,
    Thanks so much for your reply. I've clicked on the Firefox button at upper left, then Print, then Properties, then Advanced, under which is listed Printer Features (I have only 1 printer), below which is a line with Print in Grayscale, clicking on which has has 3 options: Off (apparently default), High quality Grayscale, and Black Ink Only. I click on the latter, and click on OK for this window and others in the sequence, and it'll print in black only for the present printing, but will revert to color for the next printing, 'though like I said, if I change the size to 80% or from portrait to landscape, those settings will remain. I can't figure it out. Again, thanks for any help.
    Regards, Tom

  • How to set the printer setting in VBscript

    i have a folder which is containing 20 pdf files ,i want to print only 2nd page with 2 copies in all 20 PDF files.
    i have VBscript 
    TargetFolder = "file path"
    Set objShell = CreateObject("Shell.Application")
    Set objFolder = objShell.Namespace(TargetFolder) 
    Set colItems = objFolder.Items
    For Each objItem in colItems
        objItem.InvokeVerbEx("Print")
    Next
    here all files are printing all page but how to set 2nd page with 2 copies in 20 pdf files

    You don't mention what SDK you're using.
    If you're running a Nokia SDK, for instance, you need to explicitly set the proxy URI somewhere else. Try running your MIDlet with Default Color Phone and see if it works.
    Unfortunately, proxies do not use exactly the same HTTP request method as normal Web clients (i.e., browsers). Most caches are smart enough to try to be transparent, however. It might be worthwhile to ensure that your proxy is set up as a transparent one.
    Worst case scenario, you can always host the files on a server inside your LAN, so it doesn't have to breach the proxy (or, indeed, on a little Web server running on the same machine as the emulator).
    Jouster

  • Report 3.0 : How to set the printer margin??

    Hi all,
    In report previewer, I am able to set the printer page margin
    mannally.
    Then, If, I've get some reports by RUN_PRODUCT in batch mode,
    how can I set the page margin??
    Regards,
    Andrew
    null

    Hi amole,
    one more doubt,
    Iam new to use BAPI_ENTRYSHEET_CREATE.
    What are the mandatory fields that should be passed to it to create SES ( Service Entry Sheet ).
    The data given to me is:
      Purchase Ord number,
      Activity Number,
      Rate,
      Quantity,
      External Number.
      Is the above data is enough to create SES.
      please clarify.

  • How to Set Default Printer Just for Safari

    I use 2 printers.
    One prints paper docs etc.  The other prints labels only.  When i want to print the labels I have to select that printer in the print dialogue in Safari every time.  Super annoying.
    IS there a way to set a gedault printer just for Safari?
    I tried using the localhost:641/admin method and all i get is Bad Request  (the localhost address i mention here is not the actual version as i cannot remember it now, but it was something like that)
    Using safari 6.0.2 and osx 10.8.2

    Please see these docs.
    How To Setup Default Printer for a User. [ID 153927.1]
    How to Set Up a Default Printer for a User Within Oracle Applications [ID 1018856.102]
    How To Define a Default Printer? [ID 1237254.1]
    How To Setup Default Printer For Applications [ID 184109.1]
    Thanks,
    Hussein

  • Last Q: How to set a focus to a specific text area

    Hi, I've got a seemingly simple question, which has turned out to be another real stumper of a problem.
    I've got a textpane and a textarea on a panel, which gets displayed when the user presses a button. I want the cursor to be set on the textarea as soon as it is loaded. I've tried the following methods with no luck;
    txtArea.requestFocusInWindow();
    How do I set the focus onto the textarea rather than the textpane.
    Thanks

    try this ..
    this is setting the focus to a specific editbox within a Jframe
    ok
    add this to the jbInit method :
    contentPane.addFocusListener(new java.awt.event.FocusAdapter()
    public void focusGained(FocusEvent e)
    contentPane_focusGained(e);
    then add this as a seperate method to your JFrame
    void contentPane_focusGained(FocusEvent e)
    jTextEIN.requestFocus(); // jTextEIN is just the name of the component to be focused
    Boris the fly

  • Cannot figure out how to set up printer with iphone4

    Hi -
    I am trying to figure out how to set up my HP printer to print from my iphone 4, and clearly need help !!  I downloaded the hp app on my phone, but it cannot locate my printer... Aaargh !  please advise

    Hi,
    Well, you rpinter is not an Airprint printer nor an ePrint printer, please try Cloud Print:
        http://www.google.com/landing/cloudprint/
    Good luck.
    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 to set up printer

    How to set up a network printer on a Ipad ?

    1. Buy a AirPrint enabled printer; see list below
    http://support.apple.com/kb/ht4356
    2. Run the CD provided and setup as network printer; this will setup your printer to the same network as your iPad
    3. Start printing from your iPad without wires

  • How to set default Print layout in SDK!

    Hi All
    In Form Delivery (ID=140) I want to Add Button to set default print layout by Addon.
    Please let me know the interface and the table to do it. Thanks

    Hi Tao,
    there's a vb6 sample in the DIAPI documentation
    Sets the specified report layout as default
    Dim oCmpSrv As SAPbobsCOM.CompanyService
    Dim oReportLayoutService As ReportLayoutsService
    Dim oDefaultReportParams As DefaultReportParams
    'get company service
    oCmpSrv = oCompany.GetCompanyService
    'get report layout service
    oReportLayoutService = oCmpSrv.GetBusinessService(ServiceTypes.ReportLayoutsService)
    'get report layout params
    oDefaultReportParams = oReportLayoutService.GetDataInterface(ReportLayoutsServiceDataInterfaces.rlsdiDefaultReportParams)
    'set the report layout code
    oDefaultReportParams.LayoutCode = "POR20005"
    'set the report code
    'the report code is the document type code (e.g. POR2=PurchaseOrder)
    oDefaultReportParams.ReportCode = "POR2"
    'set the user code
    oDefaultReportParams.UserID = 1
    'delete the report layout
    oReportLayoutService.SetDefaultReport(oDefaultReportParams)
    i hope it helps you
    regards
    David

  • How to set up printer on iPad

    I need help to set up printer for iPad

    1. Buy a AirPrint enabled printer; see list below
    http://support.apple.com/kb/ht4356
    2. Run the CD provided and setup as network printer; this will setup your printer to the same network as your iPad
    http://i1224.photobucket.com/albums/ee374/Diavonex/1a30ee42.jpg
    3. Start printing from your iPad without wire
    http://i1224.photobucket.com/albums/ee374/Diavonex/93ec77e5.jpg

  • How do I get Printer Name saved in a .rpt?

    I want to know how to get the name of the printer saved in a .rpt file. Unfortunately PrintOptions.PrinterName [1] property returns an empty string if the printer isn't configured locally. How do I get the printer name (or some sort of printer identifier) without the printer being configured locally yet?
    current code:
    reportDocument.ReportClientDocument.PrintOutputController.GetPrintOptions().PrinterName
    [1] http://msdn.microsoft.com/en-us/library/ms225960(v=vs.90).aspx
    Cameron

    Hi Cameron,
    I spent a bunch of time getting all of the options and discovered until the reports are saved with the current version, I'm on SP 3, getting the printer name doesn't work but there are variations.
    If the No Printer option is checked then CR users the default printer to get a few options. Problem is there is no API to get the No Printer checked box....
    If Dissociate.. is/was checked on at any time CR may also not get the printer it was designed against.
    As you may have seen we have updated the Printer options in CR 2008 to make them work as close as we can as they did in CR XI R2 and previous versions. There are still outstanding issues but usually ways to work around them.
    Unfortunately until you update the reports to current version I have not been able to get the name if No Printer is not checked on. If it is we use the Default printer Margins, depending on the patch level you are on.
    Still testing and will have to discuss with various resources to get more info.
    Thank you
    Don

Maybe you are looking for