General information
Category:
COM/DCOM and OLE Automation
Title:
BackgroundPrintStatus line in Word seeming to fail in VFP7
This secion of code has been working great under VFP6 after adding the BackgroundPrintingStatus line. I converted it to VFP7 last week and now the printer window say "Spooling" for minutes. I have another section that just prints a standard document which also stalls. I am using Word 2000 with both VFP6 & 7.
lcFileName is defined as company name & incrementing number: "OAIC-0012.doc"
oleApp.Documents.Open ("c:\foxprint\GAMMemo.doc")
oleApp.ActiveDocument.MailMerge.Execute
oleApp.ActiveDocument.PrintOut
oleApp.ActiveDocument.SaveAs(lcFileName)
oleApp.ActiveDocument.Close
oleApp.ActiveDocument.Saved = .t.
oleApp.ActiveDocument.Close
do while oleApp.BackgroundPrintingStatus > 0
doevents()
enddo
I sure could use some help.
Thanks.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only