Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing Office Documents from FoxPro
Message
From
30/11/1998 13:07:26
 
 
To
30/11/1998 12:58:18
Thierry Yuen
Stantec Architecture Ltd.
Calgary, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00162448
Message ID:
00162453
Views:
21
Thierry ---

Office automation! Fun and easy :-)

My VBA help died on my computer, so my syntax may be a little off, but consider the following:

--- Excel Automation

oExcelSheet=CREATEOBJECT("Excel.Application")
oExcelSheet.Workbooks.Open("mydocument.XLS")
oExcelSheet.Workbooks.ActiveWorkbook.Print

--- Word Automation

oWordDoc=CREATEOBJECT("Word.Application")
oWordDoc.Document.Open("mydocument.DOC")
oWordDoc.Document.ActiveDocument.Print


>Hello. I'm fairly new to the FoxPro environment and an struggling with issues that may be trivial to some of you. I would like to have the ability to print out a word document or excel sheet when an activity button is clicked. All suggestions are welcome.
>
>Sincerely,
>
>Thierry
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform