Win32::OLE Acrobat automation PrintPagesEx Error
From: Rich (dfwtp_at_bee.net)
Date: 04/14/04
- Previous message: Joe Smith: "Re: Confused on using basename..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 14 Apr 2004 07:31:00 -0700
I am trying to use Win32::OLE to print a PDF to the default windows
printer.
I have opened my file in the AcroExch.AVDoc object and am using the
PrintPagesEx method.
My Code:
$AVDoc->PrintPagesEx(1,5,2,True,True,False,True,True,PDAllPages);
Method Parameters from the SDK:
long PrintPagesEx(long nFirstPage, long nLastPage, long nPSLevel, long
bBinaryOk,long bShrinkToFit, long bReverse,long bFarEastFontOpt, long
bEmitHalftones,long iPageOption);
I am getting a type mismatch error for argument 9 "iPageOption"
however according to the SDK the only 3 options for that value are
PDAllPages, PDEvenPagesOnly or PDOddPagesOnly.
Here are the instructions from the SDK for that argument:
iPageOption - Pages in the range to print. Must be one of: PDAllPages,
PDEvenPagesOnly, or PDOddPagesOnly.
Thanks in advance for any help. -Rich
- Previous message: Joe Smith: "Re: Confused on using basename..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]