Print an MS Word Document to specific Printer tray

Hi
How do I print an MS Word document to a specific tray?
In fact it even should be a different tray per page. (First page different from the following ones...)
If there isn't a OLE2 Procedure, is there any workaround?
Maybe using a Macro?
As I have been told that this isn't possible, I would be very grateful for any help :-)
Karine
Message was edited by:
Karine
Message was edited by:
Karine

Hi Karine,
using ole2 isn't immediately, you must try first to write the code in a VB macro and then translate in ole2.
in this link there are some examples
http://www.todoexpertos.com/categorias/tecnologia-e-internet/bases-de-datos/oracle/respuestas/362078/invocar-word-desde-forms
bye

Similar Messages

  • Error message Load paper in printer when I print a certain word document

    HP Officejet Pro 8500A on Windows Vista-32 bit
    Printer works great apart from when I try and print one word document or any other word document based on it
    I press print,printer tells me it's printing then I get the error message. "load paper in printer" when there is plenty of paer in it
    Other word documents and previous printer was OK
    Thanks

    Hi,
    As the issue occours with a specific document only, make sure to verify that any of the document settings are set correctly
    (e.g. the right paper size, the page margins, etc...)
    Additionaly, try copying the entire content of the document and paste into a new blank document, try printing the new document and check for any change.
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • How do I get my new presario lap top to scan a word document in my printer scanner

    how do I get my new presario lap top to scan a word document in my printer scanner

    You will have to load up some OCR software for optical character recognition.  Free programs are on the web, just search.
    Two I use:
    Free OCR to Word
    Free OCR
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • Printing from the Word to the pdf printer,

    Printing from the Word to the pdf printer,
    I wanted to print a Word document using the pdf printer but sounds this printer doesn’t provide a dialogue box to choose where to save the printed pdf file. It prints the document but couldn’t know where does the acrobat stick it!
    What might be the problem?
    Is there some option that controls this behaviour?
    Thank you for the help,
    Best
    Jamal

    If you select the properties (or preferences) when right clicking on the Adobe PDF printer, there is a Settings tab (if not select the Advanced button on the general tab) and select the settings tab. There are selections there for requestion the file name and other items related to PDF creation. Sorry if my selections are not clear, I am on the wrong computer to check the correct selections for you, so give it a shot and try various selections until you find the settings.

  • My setup: iMac hardline to Canon i960 printer. Issue: endless printing of the same document. The printer window states that the pinter is in use and there is nothing listed in the Print Queue.  How can I stop printing the document?

    My setup: iMac hardline to Canon i960 printer. Issue: endless printing of the same document. The printer window states that the pinter is in use and there is nothing listed in the Print Queue.  How can I stop printing the document?

    Soution: Delete the printer and add the same printer back in, therefore creating a new print queue.

  • How can I select pages to print from a Word document using the report generation 'print report' vi?

    I have researched the knowledge base and found:
    Printing A Range of Pages or Number of Copies of a Report Using the Report Generation Toolkit in LabVIEW.
    This seems to be from a previous version of LV. I am using LV2010. The instructions given do not match up with the current vi. The information did provide a tip and drilling down into  the vi I was able to insert the from/to page numbers at the printout invoke method, however this prevents the print function from working in that it can no longer find the default printer.
    The error message is:
    Error 1015 occurred at NI_ReportGenerationToolkit.lvlib:Word_Print.vi -> NI_Word.lvclassrint Report.vi ->
    error 1015 is: Printer is not responding. Check printer configuration.
    Any ideas how I can make the modification to print, for example, pages 24 through 29 out of a 32 page word document?
    Thanks,
    Chris

    Hello, take a look at this article. Unfortunately the Generate Report Get Data to Modify.vi was remove since RGT 1.1.3 release. That being said, we can try to find a workaround. See "Configuring a Printer Through the Windows Dialog in LabVIEW", open the GetPrinterSettings.vi, at the PrinterSettings property node you can select the from/to page. I hope this helps.
    Alejandro | Academic Program Engineer | National Instruments

  • New printer won't print photographs or Word documents in color

    Hi, I bought an HP Officejet Pro 8625 a few weeks ago. All the ink levels are full, but when I'm trying to print a Word document or photograph from Picasa, the printer only prints in black and white. Even the "print preview" is in black and white.
    If I print a page from the Internet, the printer will print in color. But only from the Internet! I cannot get it to print in color from any other application. I've checked all my settings and have no idea how to fix this.
    Thanks for any advice.

    Hi, typically the print preview tells what you will print.
    One suspicion might be somehow the grey scale printing in the driver setting has been checked, go to the printing preferenc,  the paper quality and then advance settings and then under printer to make sure the print in gray scale option is set to Off.
    One better option that I would usually use is to Reinstall the latest Driver from Hp.com

  • Printer won't print B/W Word document, but prints B/W from internet

    Hi! So,, I know that all 3 of my color cartridges are almost empty, but the black one is more than 3/4 full. Yesterday, I was able to print just fine. Today, I tried to print a Word document that has a small color logo with the rest of the text in black. Only the color logo printed, the black text did not. I then tried to print just a B/W Word document,  but that didn't print at all  I also tried printing a document with text in color and text in B/W....the color text printed, B/W did not. I've taken all the cartridges out and I shook all of them, this also didn't help. I did a printer head cleaning and that didn't help. I just tried to print a document from the internet, with both color and B/W and that document printed fine (although the black text looks more gray). I also changed the text color on the original document from black to blue and it printed just fine. Any suggestions on what the cause of this would be? I would understand if the color wasn't printing because those are almost empty, but the black one is almost totally full so there shouldn't be an issue with that. Thanks in advance for any help/suggestions that anyone can give me.  

    Hello Dwan2,
    Welcome to the HP Forums.
    I see that you are attempting to print just in black ink.
    Here is a screen shot that I think will help you with this issue.
    Please feel free to write me back if you have any other questions or concerns.
    Cheers, 
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • Printing issue in word document

    hi,
     i am facing problem with printing word document, the alternate lines are not getting printed, theres no issue in printing pdf files. please suggest

    Hi @nish123 , and welcome to the HP Forums!
    I understand you're having issues printing, I'd like to help!
    I have a couple of questions before we get started:
    -What printer are you using?
    -Do you have any issues printing from Notepad?
    In the meantime, I'd recommend removing the ink cartridges, and performing a power reset.  Disconnect the power cord from the printer and the power outlet, then wait 60 seconds. After 60 seconds, plug the printer back in. Ensure you plug the printer directly to a wall outlet. Make sure to bypass any sort of surge protector or power bar.
    I would also suggest downloading and running the HP Print and Scan Doctor.
    Good luck and please let me know the results of your troubleshooting steps. Thank you for posting on the HP Forums!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • Word document won't 'print' to PDF on proper paper size

    I have a document in MS Word that's on a 5.5x8.5 page size. If I do a Save As, the resulting PDF uses the proper paper size, but it also shows color--which I don't want for this particular document.
    When I do Print and choose Adobe PDF, I can choose Black/white which is great, but I'm struggling to get it to use the right paper size. I've tried ever combination I can think of in the Default Setting and Adobe PDF Page Size options, but can't get it to show anything but 8.5x11.
    Any thoughts on how to get the right paper size using Print to PDF?

    Is this a Word document generated by Adobe's RoboHelp product or just a document generated directly in Word?
    If the latter, you are asking in the wrong place. Even if you are using RoboHelp, this looks more like a question to ask in the Acrobat forums.
    http://forums.adobe.com/community/acrobat
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • My word documents are not printing

    Hi, my deskjet 2544 will not print word documents. It will print off the internet though.

    Hi,
    Sorry to hear you are having problems printing.
    What device/operating system are you printing from?
    "Although I work for HP, I'm speaking for myself and not on behalf of HP"
    "Say "Thanks" by clicking the Kudos Star in the post that helped you.
    --Please mark the post that solves your problem as "Accepted Solution"

  • OLE automation-To insert and print picture in word document

    We are upgrading from 4.6C to ECC 6.0.One of our report program to print CV and insert photo in the word document works fine in version 4.6c.The methods to draw text box and insert photo to the required size don't work in ECC 6.0.seeking your advise.
    I have attached the code:
    Insert DrawingBox for CV Photo
      call method of wordobj 'DrawTextbox'.
      call method of wordobj 'DrawSetInsertToTextbox'..
      call method of wordobj 'FormatDrawingObject'
               exporting
                  #01 = '0'              "Tab
                  #02 = '1'              "FillColor
                  #03 = '1'              "LineColor
                  #04 = '8'              "FillPatternColor
                  #05 = '0'              "FillPattern
                  #06 = '1'              "LineType
                  #07 = '0'              "LineStyle
                  #08 = '0.75 pt'        "LineWeight
                  #09 = '0'              "ArrowStyle
                  #10 = '0'              "ArrowWidth
                  #11 = '- 1'            "ArrowLength  <--
                  #12 = '0'              "Shadow
                  #13 = '0'              "RoundCorners
                  #14 = '15.7 cm'        "HorizontalPos
                  #15 = '1'              "HorizontalFrom
                  #16 = '5.0 cm'         "VerticalPos
                  #17 = '1'              "VerticalFrom
                  #18 = '0'              "LockAnchor
                  #19 = '4 cm'           "Height
                  #20 = '4 cm'           "Width
                  #21 = '1 pt' .         "InternalMargin
      if not path1 is initial.
        call method of wordobj 'InsertPicture'
          exporting #1 = path1         "Name
                    #2 = '1'.          "LinkToFile
       endif.
      call method of wordobj 'DrawUnselect'.
      call method of wordobj 'EndOfDocument'.
      call method of wordobj 'InsertPara'.
    Thanks..

    hi ,
    use this for the custom pictures
    Re: OLE / ms WORD / Create new document, insert image and print
    use this for getting sap icons ...
    Re: How to get SAP Icons as OLE Object

  • OLE automation To Print picture in word document

    We are upgrading from 4.6c to ECC 6.0.One of Our OLE automation Report is used to launch the word document to print CV and photo.But the program acts differently to the different Presentation servers even though they all have the same GUI and word versions.Text box and images are drawn at different sizes and at different locations in the word document.
    Please advise.

    Sure,
    I need to make an abap program to execute a word document
    in this document I want to insert a picture
    we have a picture in SAP in the transaction SE78 (Administration of Form Graphics)
    I want to know if I can use this picture or if the only method is to have the picture in local into the PC
    regards
    Patrick

  • Multipage word document cannot be printed using webutil

    We have the following problem. We are using Oracle Webforms 11g (11.1.1.4). On the server a Word 2010 docx document has been created and needs to be printed locally. We use webutil for this with the following code:
    -- create a new document
    app := client_ole2.create_obj('word.application');
    client_ole2.set_property(app, 'visible', 0);
    docs := client_ole2.get_obj_property(app, 'documents');
    args := client_ole2.create_arglist;
    client_ole2.add_arg(args, p_filename);
    client_ole2.add_arg(args, 0); -- confirmconverion (false)
    client_ole2.add_arg(args, 1); -- readonly (true)
    client_ole2.invoke(docs, 'open', args);
    client_ole2.destroy_arglist(args);
    client_ole2.invoke(app,'printout');
    client_ole2.release_obj(docs);
    args := client_ole2.create_arglist;
    client_ole2.add_arg(args, 0);
    client_ole2.invoke(app,'quit', args);
    client_ole2.destroy_arglist(args);
    client_ole2.release_obj(app);
    When the document to be printed consists of only one page the document is printed. When there is more than one page (hard/soft page end) the resulting document is empty. We also tried Word 2003, RTF format but nothing worked.
    Extra Info:
    Clients: Windows XP SP3, Office/Word 2010
    Server: Forms 11.1.1.4, Windows Server 2008R2
    Webutil/jacob: 1.10.1 as recommended.
    What can we do to solve this?

    Ok... I went back and tested your code and by adding a "0" for the Range param, all pages of my 3 page doc printed.
    -- create a new document
    app := client_ole2.create_obj('word.application');
    client_ole2.set_property(app, 'visible', 0);
    docs := client_ole2.get_obj_property(app, 'documents');
    args := client_ole2.create_arglist;
    client_ole2.add_arg(args, p_filename);
    client_ole2.add_arg(args, 0); -- confirm converion (false)
    client_ole2.add_arg(args, 1); -- readonly (true)
    client_ole2.invoke(docs, 'open', args);
    client_ole2.destroy_arglist(args);
    -- CHANGES BEGIN HERE
    args := client_ole2.create_arglist;
    client_ole2.add_arg(args, 0); -- 0 means background printing
    client_ole2.add_arg(args, 0); -- 0 means no append
    client_ole2.add_arg(args, 0); -- 0 means print all pages
    client_ole2.invoke(app,'printout',args);
    client_ole2.release_obj(docs);
    client_ole2.destroy_arglist(args);
    -- CHANGES END HERE
    args := client_ole2.create_arglist;
    client_ole2.add_arg(args, 0);
    client_ole2.invoke(app,'quit', args);
    client_ole2.destroy_arglist(args);
    client_ole2.release_obj(app);This appears to be the syntax according to the MS docs:
    PrintOut([Background], [Append], [Range], [OutputFileName], [From], [To], [Item], [Copies], [Pages], [PageType], [PrintToFile], [Collate], [FileName], [ActivePrinterMacGX], [ManualDuplexPrint], [PrintZoomColumn], [PrintZoomRow], [PrintZoomPaperWidth], [PrintZoomPaperHeight])
    Edited by: Michael Ferrante on Oct 12, 2011 3:48 PM

  • Word document closes before printing

    I am using a HP Deskjet 6980. Just recently when you try to print a word document go into file, print, the document appears to go to the printer but fails to print and the document closes.  But when you click on the printer icon in the toolbar the documents prints out once.  Anyone any ideas where the problem lies.
    Many thanks
    Bob

    This is undoubtedly not the most optimal solution, but what happens if you print to PDF? Do all shapes and objects appear in the PDF electronic copy on screen? If so, how does it look, then, if you open the PDF with Adobe Acrobat (Reader?) or Preview and print hard copy from there?

Maybe you are looking for

  • Need help w/BW user authorization to see Web Templates thru portal

    Hello, We have designed Web Templates in BW which we intend to use through the SAP Portal. When these web templates are accessed via a URL which also passes a generic CPIC UserID/Password (created on the BW server), the template is fully functional a

  • I can not upgrade from version 9.1.5 to 9.2.3 on my IMAC free?? I have to pay for this upgrade?

    I can not upgrade from version 9.1.5 to 9.2.3 on my IMAC free?? I have to pay for this upgrade?

  • CS4 Photo downloader - can I change the default path?

    I'm using Bridge on Windows 7 x64. I have 2 hard drives exclusively for photographs. I never, ever store them in 'C:\Users\Mary\Pictures'.   But when I download images with the Photo Downloader, C:\Users\Mary\Pictures' is the folder I'm offered. Ther

  • Final Cut Exporting to DVD Settings Help!

    Hello, all. Hopefully someone can help me with this problem that I have been struggling with for weeks. I shot a video project in standard definition on a Sony VX2000, then edited it in Final Cut Express. I am now wondering what the best export setti

  • BPEL adapter issues??

    Questions below are relative to SOA Suite 10.1.3.3 adapters: 1. In creating a File Read/Write adapter - how can I specify a variable portion of the file name - can XPath expressions be used. I know that in specifing the file name one uses a %---% but