Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
If I simply use $Word->ActiveDocument->PrintOut then I get a full printout. My problem is I need the first 2 pages printed only.use strict; use Win32::OLE; use Win32::OLE::Const 'Microsoft Word'; my $Word = Win32::OLE->new('Word.Application', 'Quit'); $Word->Documents->Open("C:\\ems\\ems1.rtf"); $Word->ActiveDocument->PrintOut({ Range => wdPrintFromTo, From => 1, To => 2, });
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Printing specific pages of a word document
by holli (Abbot) on Mar 21, 2005 at 15:49 UTC | |
|
Re: Printing specific pages of a word document
by traveler (Parson) on Mar 21, 2005 at 15:54 UTC | |
by Anonymous Monk on Mar 21, 2005 at 16:55 UTC | |
by holli (Abbot) on Mar 21, 2005 at 17:08 UTC | |
by Anonymous Monk on Mar 22, 2005 at 09:52 UTC | |
by Anonymous Monk on Mar 23, 2005 at 10:56 UTC |