OleAutomation Printing to Specific Printer Tray

  Is there a way to programmatically print pdf files with Adobe Acrobat or Reader ( via OleAutomation interface ) selecting ( programmatically too ) a specific printer tray ? Thanks.

Use a printer that is set to use the desired paper tray by default. 
If you are looking for dynamic switching of paper trays, one of the 3rd-party Crystal Report Managers listed at http://www.kenhamady.com/bookmarks.html provides functionality that allows you to control the splitting of Crystal report printouts across different paper trays.

Similar Messages

  • Print crystal report to a specific printer tray

    Greetings -
    I need to print out a report to a specific printer tray, can you please let me know how I set it up?
    Thanks,
    Lava

    Hi Lava,
    According to what I can understand you would like to print the Crystal Report to a specific printer.
    In order to print the crystal report to a particular tray of a printer you need to set the printer from the Crystal Reports application.
    This can be done from u201CFileu201Dmenu->Print. Select the printer if it is already added else you can add anew printer.
    I hope this helps you.
    Regards,
    Prashant.

  • How to print to a specific printer tray in BOXI

    Post Author: hoochpit
    CA Forum: General
    I have a customer that wants the same report to print to different printer trays depending on parameters sent it.  We have no problem recognizing which tray it should go to, but cannot get it to print to the tray that is specified.  It just prints to the same defualt tray every time.  They are running BOXI on a Windows OS.  Any direction would be great.

    http://support.ricoh.com/bb/html/dr_ut_e/ra/model/mpc281/mpc281en.htm
    googled it with this
    https://www.google.dk/search?source=ig&hl=da&rlz=1G1TSEH_ENDK367&q=Ricoh+Aficio+ MPC+3001&oq=Ricoh+Aficio+MPC+3001&gs_l=igoogle.3..0i10j0i30j0i10i30l3j0i30j0i5i3 0.159792.159792.0.160175.1.1.0.0.0.0.152.152.0j1.1.0...0.0...1ac.6gJzJbz0xZc

  • How to print to a specific printer tray

    Post Author: hoochpit
    CA Forum: Administration
    I have a customer that wants the same report to print to different printer trays depending on parameters sent it.  We have no problem recognizing which tray it should go to, but cannot get it to print to the tray that is specified.  It just prints to the same defualt tray every time.  They are running BOXI on a Windows OS.  Any direction would be great.

    Can you post some code? How are you getting you PCL to the printer?
    Take a look at the javax.print.attribute.standard.MediaTray print request attribute and see if that will help.
    Also take a look at my comments here: http://forum.java.sun.com/thread.jspa?threadID=5227412
    That may also help you.

  • Specifying number of copies and printer trays

    Hi,
    can anyone tell me if there is a way, within CR, to specify the number of copies of a report to print and to direct the copies to specific printer trays i.e. copy one prints to printer tray one, copy two prints to printer tray 2.
    Thanks,
    Noel

    You'd have to create an application using .NET or Java to do this.
    Ludek

  • Printer Tray configuration

    Hi <br /><br />I'm having abit of an issue at the moment in terms of printers trays . We have recently purchased a Océ 5112 Printer which has 8 trays, we were previously printing using only a 4 tray printer.<br /><br />I have modifed the ICS printer driver oce_vhi.ics file as follows  <br /><br />; PCL5 version of Input Tray Selection file for Oce 31X5 and 84X5<br />;<br />;  Input trays:  Format= "InputTray <jetform ID> <printer tray> [<tray name>]<br /><br />InputTray   1       20   ; Tray 1<br />InputTray   2       21   ; Tray 2<br />InputTray   3       22   ; Tray 3<br />InputTray   4       23   ; Tray 4<br />InputTray   5       25   ; Tray 5<br />InputTray   6       26   ; Tray 6<br />InputTray   7       27   ; Tray 7<br />InputTray   8       28   ; Tray 8<br /><br />Printing is fine from trays 1-4, however we when get to tray 5, it appears to skip to the next tray (ie tray 6) and so on for the remaining tray calls. I've been able to examine the PCL file which looks like it's calling a 9th tray which I haven't defined.<br /><br />I'm not sure what the issue is but can anyone point me to what I should be checking??<br /><br />Thanks <br />Josephine

    Hi Tom <br /><br />I think you may be right,the only reason we're not using code 24 is because it was set up as some sort of default tray.<br /><br /> I did try and change the driver file to the following and recreate the output for all 8 trays as follows<br /><br />InputTray 1 20 ; Tray 1 <br />InputTray 2 21 ; Tray 2 <br />InputTray 3 22 ; Tray 3 <br />InputTray 4 23 ; Tray 4 <br />InputTray 5 24 ; Tray 5 (this corresponds to <Esc>&l24H below)<br />InputTray 6 25 ; Tray 6 <br />InputTray 7 26 ; Tray 7 <br />InputTray 8 27 ; Tray 8 <br /><br />but we we printed, we still had an issue with the tray calls.<br />However the printer I believe was still looking at this escape sequence as some sort of default tray and not specifically as Tray 5.<br /><br />The original escape seqencences for the new printer that were sent to me were:<br /><br /><Esc>&l20H ---> Tray 1<br /><br /><Esc>&l21H ---> Tray 2<br /><br /><Esc>&l22H ---> Tray 3<br /><br /><Esc>&l23H ---> Tray 4<br /><br /><Esc>&l24H ---> Extern<br /><br /><Esc>&l25H ---> Tray 5<br /><br /><Esc>&l26H ---> Tray 6<br /><br /><Esc>&l27H ---> Tray 7<br /><br /><Esc>&l28H ---> Tray 8<br /><br />Do you think this could be what's happening? The engineer suggested it might be because our printer driver can't handle an 8 tray selection but if that were the case would we be seeing any tray call whatsoever from trays 5-8?<br /><br />Thanks<br /><br />Josephine

  • Printer tray selection VS2010

    We have the following questions regarding windows printer default tray determining tray to print from:
    <br><br>
    1. When we set m_reportClass.PrintOptions.PaperSource = CrystalDecisions.Shared.PaperSource.FormSource, it defaults back to Auto (we can see that when we debug, it simply ignores the command) - why is that, and which option should we use to get the printer to use PrinterDefaultTray?
    <br><br>
    2. Default Printer impacts rpt. file even though "No Printer" is checked in the Page Setup dialog - so the default printer set on the developer PC opening the Page Setup of a .rpt file (not making a change, just opening) will change the file. Why is that and what change is made?
    <br><br>
    3. We have made a default 'dummy' printer on the developer pc which is used when opening the .rpt file. If a similar printer with the same name does not exist on the PC printing the report, we cannot control the tray that is prints from.
    <br><br>
    Is there a viewer that can show what has been changed inside an .rpt file to better understand what is happening to the file when it is opened in VS2010?
    <br><br>
    We are experiencing an issue with Crystal Reports VS2010 when trying to print reports to a specific tray. We have recently upgraded from .net 1.1 to .net 4.0 and in relation to this we also upgraded the CR version.
    <br><br>
    In the previous version we were able to setup windows printers with a specific default tray and when printing to this windows printer, the default tray of this windows printer was used. We have a range of printers being used in a client windows forms application, so we need to be able to continue letting the windows printer definition determine which tray to use. Preferable we would like to set PaperSource to UsePrinterDefaultTray, but that option does not seem to exist (or we have not found it yet). We have found another solution, but would like to understand why it works so we know that it is a viable solution.
    <br><br>
    The application is based on creating a report using the CrystalDecisions.CrystalReports.Engine.ReportClass. The example below has been shortened for readability:
    <br><br>
    CrystalDecisions.CrystalReports.Engine.ReportClass m_reportClass = new new EKRB007A();<br>
    // create/get data for report<br>
    // u2026<br>
    m_reportClass.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA4;<br>
    m_reportClass.FormatEngine.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA4;<br>
    <br><br>
    m_reportClass.SetDataSource(this.dataSet);<br><br>
    <br><br>
    CrystalDecisions.Shared.PageMargins pm = new CrystalDecisions.Shared.PageMargins(<br>
                                    this.getA4InvoicePrinterOriginalHorizontalAlignment(), <br>
                                    this.getA4InvoicePrinterOriginalVerticalAlignment(),   <br>
                                    m_reportClass.PrintOptions.PageMargins.rightMargin,    <br>
                                    this.getA4InvoicePrinterOriginalVerticalAlignment()     );<br>
    <br>
    m_reportClass.PrintOptions.ApplyPageMargins( pm );<br>
    <br>
    // The name of the windows printer to use is read from parameters.<br>
    m_reportClass.PrintOptions.PrinterName = this.getA4InvoicePrinterCopy(); // here it will return 'InvoicePrinter'<br>
    <br>
    m_reportClass.PrintToPrinter(<br>
            1,<br>
            true,<br>
            1,<br>
            m_reportClass.FormatEngine.GetLastPageNumber( new CrystalDecisions.Shared.ReportPageRequestContext()));<br><br>
    The printer has the 'No Printer' set in the Page Setup dialog as we have different printers with different number of trays, so we need to be able to specify the printer at runtime (according to the VS2010 CR documentation, there should be two dialogs - Print Setup and Page Setup, but in VS2010, we can only find the Page Setup, and it includes some of the options from the old Print Setup dialog).
    <br><br>
    Developer A, has two printers: printer 'Generic Text' set to default and printer 'InvoicePrinter' (the one to print from as read from the paramter in the above code). The 'Generic Text' is a generic text printer with no trays and the 'InvoicePrinter' is an OKI printer with two trays.<br><br>
    Developer B, has printer 'InvoicePrinter' set as default.<br><br>
    Developer C, has two printers: printer 'SalesList' set to default and printer 'InvoicePrinter'<br><br>
    Developer A sets up printer 'InvoicePrinter' to print in tray 1 (and 'Generic Text' is default printer). Then opens the .rpt file and compiles. If a print is made on the developer PC, it prints to the correct tray. We can change 'InvoicePrinter' to tray 2 and again it prints correctly. However, if the same .dll is deployed on Developer B's PC, and a print is made, it always uses the same tray even though the windows printer is changed (it actually uses the 'InvoicePrinter', but it ignores the tray it is configured to use). The same is the case for Developer C's PC.
    <br><br>
    We have tried to set m_reportClass.PrintOptions.PaperSource = CrystalDecisions.Shared.PaperSource.FormSource and m_reportClass.PrintOptions.PaperSource = CrystalDecisions.Shared.PaperSource.Auto, but it has no impact.
    <br><br>
    If Developer B adds a printer called 'Generic Text' (even though it is not to be used) AND sets this printer to be the default printer, then it works exactly as on Developer A's PC - meaning that the windows printer tray definition of 'InvoicePrinter' is used correctly.
    <br><br>
    Our solution rigth now is to install a 'dummy' printer on all developer PCs and on all client PCs. This printer must be set as default printer on developer PCs so when the Page Setup of any .rpt file is opened (yes, just opening it changes the file), the new file generated will be based on the 'Generic Text' printer. We will then change the default printer on client PCs just before printing to the 'Generic Text' printer and set it back to their 'normal' default afterwards.
    <br><br>
    In my dev team we all agree that this is not the optimal solutions, so any suggestions will be well received.
    Edited by: Visual Reporting ApS on Oct 17, 2011 12:08 PM

    Use the InProc RAS SDK, not CR SDK. More functional, same licensing.
    See the following forum threads:
    |Re: Using printReportOptions.BinName, Tray Printing
    Re: Printer Tray Selection
    Re: Custom Paper Size & Orientation Problem
    Re: 8.5 x 5.5 paper size in VS2010 with Basic Crystal report
    Re: How to print a report in landscape?
    And don't forget to do more searching. Also, sample InProc RAS apps are [here|https://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples].
    An intro to InProc Ras:
    [How to Use The RAS SDK .NET With In-Process RAS Server|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10b840c0-623f-2b10-03b5-9d1913866b32]
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Printer Trays - How to control input trays

    I have hit a wall and need your help. We have an application compiled for both a Lexmark Optra S 1650 and an HP4 Plus. The input tray to be used is dependent upon the printer selected. We are using JfDesign 5.5.
    For the Lexmark, we need to select label stock from the tray physically labeled as "3". In the .ICS, this drawer is considered as tray "5" or "1005". Each attempt pulls from drawer one, compile option "Use printer tray numbers" unchecked. Attempts, ^job statement with: (1) -ati3; (2) -ati5 -atjoff; (3) compiling with non-portable tray #3; (4) compiling with non-portable tray #5 and use printer tray numbers checked.
    Ideas?

    I had a problem that was somewhat similar. We are using two printers that are definately different. Our print jobs can go to either one, interchangeably. We needed to be able to specify within Output Designer the specific tray that a particular page was to draw from and have the correct paper be used no matter which printer was printing the job. To complicate matters, Output Designer did not have ICS files for our specific printer models.
    One printer has 6 input sources and the other 5. Which specific input tray contains a particular type of paper is different. More importantly, the PCL emulation in both of them require a different number in the PCL tray selection command to get the printer to draw from a specific tray. For example, for one printer (it happens to be a Lexmark 3455) the tray selection command for "label stock" uses a 1 in the command sequence (that happens to be tray one due to the paper path being the best for labels); the other printer (a Xerox DP65) requires a 6 in the command sequence to be able to draw from the tray that is defined as containing label stock (again that happensto be tray 6 which has a staight paper path - so as to reduce the chance of the labels peeling off while going around sharp curves).
    After doing considerable study of the ICS files, I had to do two things: (1) Determine the PCL tray selection command number for each tray for each printer, and (2) through trial & error determine what value to use within the ICS file to produce the description that I wanted to see in the Format/Page/InputTray selection drop down list.
    Once I had all that information figured out, it was simply a matter of changing the "Trays", "InputTray", and "DefaultTray" parameters within the ICS file. The important part is to know the "format" of the InputTray parameter. The first number is what produces the description for the InputTray selection drop down list. The second number is what is used for the tray selection command.
    To determine the values I wanted for the description, I just started changing the numbers and checking to see what each different value resulted in. The number for the tray selection command came from the printers themselves - the Lexmark will print the command numbers on its setup page while the Xerox provides it via the keyboard & CRT menus.
    When compiling forms we do not check the "Use printer tray numbers" box. When printing we don't use any tray control parameter (-ati, -atj) on the ^job statement. A print job might consist of a colored separator page, a letterhead page and several plain white pages. There is nothing within the DAT file to control the input tray; that was all defined within Output Designer.
    We did discover a couple of quirks that we were able to resolve. First, if I set up Output Designer so that the Xerox printer is the "default" (and it is the one most often used) the tray selection wouldn't work properly; the solution turned out to be to set up Output Designer to use the Lexmark as the "default"; we just use the -z and -asp parameters on the ^job statement to specify the desired printer and driver. The second one occurred when I decided to make the MDF files smaller by deselecting fonts that we don't use. When I did this the tray selection stopped working. Through trial & error the solution turned out to be to select a specific font for one of the printers even though we don't use that font.
    To demonstrate what I'm talking about, here is the section of the ICS files that I'm referring to.
    LEXMARK.ICS
    >; Auxilliary Paper control information
    >Trays 5 ; 5 paper tray selections on printer
    >; JetForm-Printer
    >.
    InputTray 7 0 ; Auto Select
    InputTray 20 20 ; High Capacity
    InputTray 201 1 ; Tray 1
    InputTray 2 4 ; Tray 2
    InputTray 3 5 ; Tray 3
    InputTray 405 1 ; Label Stock
    InputTray 8 2 ; Manual Feed
    >DefaultTray 20 ; On a new form default to High Capacity
    XEROX.ICS
    >; Auxilliary Paper control information
    >Trays 6 ; 6 paper tray selections on printer
    ; DP65 PCL Designations:
    ; 0=Auto Select
    ; 1=Standard
    ; 2=Manual paper
    ; 3=Manual Envelope
    ; 4=Lower
    ; 5=Large Capacity
    ; 6=Envelope
    >; JetForm-Printer
    >.
    InputTray 7 0 ; Auto Select
    InputTray 20 1 ; High Capacity
    InputTray 201 2 ; Tray 1
    InputTray 2 3 ; Tray 2
    InputTray 3 4 ; Tray 3
    InputTray 405 6 ; Label Stock
    InputTray 8 5 ; Manual Feed
    >DefaultTray 20 ; On a new form default to High Capacity
    (the period/space in front of the first InputTray parameter isn't really there; it is a quirk of the posting system)

  • Default print tray keeps reverting to Tray 1, asking for glossy paper on HP P3015

    We have a new HP P3015 at work, and a few days ago it started defaulting to Tray 1, and asking for Glossy paper.  I have followed all onscreen instructions for changing print tray multiple times, and tried hard booting the printer a couple of times.  There is no paper in Tray 1, and it is shut.  For each print job, I must walk over to the printer and press OK to change print trays, and OK again to print.  How can I clear these settings so that the printer will revert to printing from Trays 2 and 3 without having to walk over and change it for every job?
    It also started printing much more slowly that when we first set it up a couple of months ago.

    switch off the printer, take the paper out of the tray, reassemble the paper properly, then put the paper back and switch on the printer, it should work
    or just change the paper specificationo in A4 legal paper it should work then
    slseattle wrote:
    My printer suddenly started refusing to print normal jobs on standard 8 1/2 x 11 paper. It shoots out a blank sheet with the edge slightly crimped for about 1 1/2 inches, about 1/2 inch from the bottom of the sheet. It displays the message "Paper mismatch. Paper size or type is incorrect." I have no idea what is causing this problem. It had printed perfectly up until now, but it has given the same error message for the last several different job attempts, and I'm stumped.
    I look into the printer from the paper tray and above, and see no obstruction. Any ideas?
    Thanks for your help!
    slseattle wrote:
    My printer suddenly started refusing to print normal jobs on standard 8 1/2 x 11 paper. It shoots out a blank sheet with the edge slightly crimped for about 1 1/2 inches, about 1/2 inch from the bottom of the sheet. It displays the message "Paper mismatch. Paper size or type is incorrect." I have no idea what is causing this problem. It had printed perfectly up until now, but it has given the same error message for the last several different job attempts, and I'm stumped.
    I look into the printer from the paper tray and above, and see no obstruction. Any ideas?
    Thanks for your help!

  • Is there a way to change the default print tray on an HP LaserJet 500 color M551 Printer

    Hi
    Is there a way to setup the default print tray for a HP LaserJet 500 color M551 printer to be tray 2 printing both online and direct?
    If so what would be the best way to go about implementing it?
    Thanks
    This question was solved.
    View Solution.

    Usually, you can change the default paper trays through the control panel and through the Embedded Web server (EWS).
    Check the settings on your control panel. Here is a link to the User Guide, check out page 94 and see if that helps you out.
    m551 User Guide
    For the EWS, put the printer IP address into your browser, then go to the tab that would list tray settings. Not sure exactly which tab has it for this printer series, but on other printer series it is on the system tab under paper setup.
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as Accepted Solution

  • How to make blank copies of a PDF file and put it into the printer tray.

    Dear experts,
    Before you try printing the data from the FM, How tomake several blank copies of the PDF file  and  put it in the printer tray so that you can print just the data from the function module on it??????
    Please reply.

    Hi drredwood,
    When you open your PDF file a yellow bar will appear on the top of the screen.
    Click on 'Enable All Features'.
    Then you will be able to copy the content from your pdf and to paste in any of the file.
    Regards,
    Florence

  • SET PRINTER TRAY AT RUN TIME

    HELO EVERY BODY
    I HAVE TWO REPORTS I WANT TO PRINT FIRST REPORT FROM UPPER TRAY AND SECOND REPORT FROM LOWER TRAY HO CAN I DO THIS?
    SECOND PROBLUM IS I CREATE A REPORT ON LEGAL PAPER WHEN I RUN THIS REPORT IT WILL TAKE DEFAUT PAPER SIZE OF PRINTER WHICH IS LETTER HOW CAN I SET PAPER LEGAL BY WHICH I NOT CHAND PAPER EVERY TIME
    THANKS IN ADVANCE
    KHUDA HAFIZ

    Faiz,
    Pl see my response, and reply in your other thread:
    set printer tray and page size
    Navneet.

  • Dynamically switch printer tray from concurrent program in Oracle Apps 11i

    Hi All,
    We have a requirement to dynamically switch printer tray from concurrent program .
    In the application we had a printer "*Printer1*" defined ,the printer (physical) printer have two trays and it always pick paper from Lower tray
    To test the functionality I created one more defination " *Printer2*" in the application .
    For this second printer created one more PPd files Printer2PPD2 . In this Printer2PPD2 the value of DefaultInputSlot i gave as Upper,so that printer will pick paper from upper tray
    As we are having the PASTA configuration hence in the "uiprint.txt" entered the definations for Printer2 and also mentioned the PPD file.
    So in the concurrent program i selected Printer2 and executed the program.But instead of picking from upper tray it picked from lower tray.
    I could know this because in upper tray I had counted the number of papers so if the paper would have been picked ,the count would have reduced by 1.
    Please let me know the solution for this issue.
    Thanks and Regards
    Jaydeep

    Please refer following notes:
    Dynamically Switching Printer Trays [ID 66402.1]
    How to Specify a Printer Paper Tray With Pasta [ID 241086.1]     
    thanks

  • Regarding Printer Tray Selection while running BI Publisher Report.

    Hi All,
    Below is my requirement.
    When ever user tries to run the report, based on the customer code the printer tray has to be passed to printer so that the report gets printed by selecting the paper from the same tray. Each printer tray will have different paper color.
    Let me know how can I achieve this? Its very urgent..
    Thanks
    Babu

    hi,
    Just now i identified that its not deleting the report but its reverting back the report to its previous version. Let me explain it you in details:
    suppose i created a report with following query source as Oracle Database:
    select territory_code from fnd_territories_tl
    where LANGUAGE = USERENV ('Lang')
    now if i modify the query in the same report to following query:
    <dataTemplate name="dunningLetter" description="Dunning Letter Report" dataSourceRef="IPOVIS" defaultPackage="xx_shpckt_init" Version="1.0">
    <parameters>
    <parameter name="p_order_number" dataType="character"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[select order_number from oe_order_headers where order_number = :p_order_number
      ]]>
    </sqlStatement>
    </dataQuery>
    <dataTrigger name="beforeReport" source="xx_shpckt_init.beforeReportTrigger"/>
    </dataTemplate>
    and then if i run the report again, the report will still show the result of previous query!! and then if i go back to data model then it will show the previous query there!! not sure why is it doing this way?? Also sometimes, when i create a new report and then view the result then it will revert its previous stage i.e report without Data model, LOVs and parameters!! That is the reason i thought its deleting the report while running report.
    Please suggest why is it acting this way? Appreciate your help and time.
    Thanks,
    Regards,
    AS

  • Smartform Printing Tray issue

    Hi,
    I have an issue for printing multiple tray. My req is first page nneds to print from TRAY 02 and the second page from Tray 03.
    I configured in the smartform PAGE01 - Output options- Resource name - TRY02 and
                                              PAGE02 - Output options- Resource name - TRY03
    But both the pages printing for the same tray. like tray02.
    Aprat from the resource declaration anything need to do for this?
    Please guide me any one.
    Thanks in advance.
    Vijay.

    Hello,
    Is it a frontend printing? Which device type is used?
    In recent SAPGUI patches, it is possible to map the tray ids via the
    Frontend Options Editor/ tab 'Printer Tray Selection'.
    (see KBA 1704243 about how to access the Frontend Options Editor)
    Please test the following:
    Select the printer model and in "Paper Trays", select "Tray 1",
    in the field "SAP ID" enter the value: 1
    and,
    select "Tray 2", in the field "SAP ID" enter the value: 2
    Do the same for Tray 3, 4...
    After this, please restart SAPGUI and test the printing.
    Regards,
    Wen Peng

Maybe you are looking for