I normally record a macro in Word to make sure I get the tray settings right,
some of them seem to be printer dependent.

All the options should be covered in the Visual Basic help file (VBAWRD8.HLP).





Luke Pascoe wrote:

> I'm trying to control a MS Word document via OLE. It already loads the
> document and prints it, but does so with the default printer values. I know
> that the printer options can be set, I even know where to set them, but I
> don't know _what_ to set[1]. MSDNs documentation has nothing except a
> description of what the method does, nothing about its parameters. Anyone
> know where I can get that info?
>
> Also, once I figure out how to tell Word what I want, I face another
> problem. How to get the info gathered by my TPrinterSetupDialog. The Execute
> method returns only True or False, and there are no properties or methods to
> retrieve the information I need[2].
>
> Thanks.
>
> ========================================================
>  Luke Pascoe                          Junior Programmer
>              enSynergy Consulting LTD
>
>  [EMAIL PROTECTED]  +64-9-3551593  fax +64-9-3551590
>  Level 4,   10-12 Federal St,   Auckland,   New Zealand
>  PO Box 32521,  Devonport,  Auckland 1330,  New Zealand
> ========================================================
>
> [1] Example of Word print command:
>       FPrintProgram.Application.ActiveDocument.PrintOut(Copies := NrCopies,
> Collate := True);
>     "Copies" and "Collate" are printer setup options, What other options are
> there?
>
> [2] Paper orientation (Portrait/Landscape)
>     Paper tray to use
>     Etc.
> ---------------------------------------------------------------------------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"

--
John Mason
Sinclair Knight Merz Limited
54 The Terrace, Wellington, New Zealand
Phone: +64-4-473 4265, Fax: +64-4-473 3369
--
NOTICE - This message contains privileged and confidential information intended
only for the use of the addressee named above. If you are not the intended
recipient of this message you are hereby notified that you must not disseminate,
copy, or take any action in reliance on it. If you have received this message in
error please notify Sinclair Knight Merz Limited immediately. Any views
expressed in this message are those of the individual sender, except where the
sender has the authority to issue and specifically states them to be the views
of Sinclair Knight Merz.


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to