|
-
August 18th, 2004, 07:42 PM
#16
Thanks a lot Tom
I could not get to the whole thread from the link you had in the your reply,
Anyways I tried that but still it prints the whole **** document.
I am using
myDoc.PrintOut(covTrue, // Background.
covFalse,//covOptional, // Append.
COleVariant((long)5),//covOptional, // Range.
covOptional, // OutputFileName.
covOptional, // // From.
covOptional, // // To.
covOptional, // Item.
COleVariant(numCps), // Copies.
COleVariant(_T("2,3")),//covOptional, // Pages.
covOptional, // PageType.
covOptional, // PrintToFile.
covOptional, // Collate.
covOptional, // ActivePrinterMacGX.
covOptional, // ManualDuplexPrint.
covOptional, // PrintZoomColumn New with Word 2002
covOptional, // PrintZoomRow ditto
covOptional, // PrintZoomPaperWidth ditto
covOptional);
I have to use COleVariant(_T("2,3")) as COleVariant("2,3") gave the error:: error C2440: 'type cast' : cannot convert from 'char [4]' to 'class COleVariant'
I am opening the document like this word: ocuments myDocs = myWord.GetDocuments();
myDoc= myDocs.Open(COleVariant(szFileName),
covFalse,covTrue,covFalse,covOptional,covOptional,covFalse,covOptional,
covOptional,covOptional,covOptional,covTrue);
Thanks for your time!
Pauli
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|