Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PrintOut(0) forces a save
Message
From
07/07/2001 11:49:09
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00527723
Message ID:
00527769
Views:
18
>>In Word automation, I do a bunch of changes and save the document. Everthing is ok. The VFP starts Word, opens a document, applies changes to it, saves the document and closes Word. However, if I add a PrintOut(0) just before closing Word, this will force a save and a prompt will appear to ask me if I want to save my changes or not. How can I avoid that?
>
>I think you have wrong first parameter. It should be logical:
>llPrintBackGround = .f.            && parm 1
>lnPrintRangeType  = wdPrintFromTo  && parm 3
>lcOutPutFileName  = ""             && parm 4
>lcFrom            = "1"            && parm 5
>lcTo              = "1"            && parm 6
>lnCopies          = "1"            && parm 8
>lcPageRange       = ""             && parm 9  if parm 3 is wdPrintRangeOfPages
>llPrintToFile     = .f.            && parm 11 only if lcOutPugFileName is used
>
>oWord.oDocument.PrintOut(llPrintBackGround, , lnPrintRangeType, , lcFrom, lcTo, , lnCopies)
>
After having changed the document to another one, I don't have this behavior. So, there is something in the other document which forces a save. I have some fields in it. Might it be that this is what is causing a save.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform