Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating report using OLE with Word97
Message
From
22/03/1999 02:54:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Creating report using OLE with Word97
Miscellaneous
Thread ID:
00200373
Message ID:
00200373
Views:
38
I am spending what seems like an inordinate amount of time trying to figure out how to create some very simple Word97 documents using OLE in VFP 5.0. I have viewed all messages in UT for the past year and a half, which have been helpful, but I still have a long way to go. I'm just about to throw in the towel.

Okay, enough venting. Here are my questions:

1) Is there some formula for translating VBA macro code into VFB OLE commands? For example, I want to select a column in a table i have just created. The macro code is: Selection.SelectColumn. I tried many variations of:

oWord.activeDocument.tables(1).column(1).SelectColumn

none of which work. Help, please!

2) Likewise, once I have selected the column I want to adjust its width. Macro code is: oWord.activeDocument.tables(1).column(1).SelectColumn.

How does that translate into VFP?

3) Is this all really a lot more difficult than it should be, or am I dense?

4) I have been spending a lot of time spinning my wheels on this. As an independent contractor, how much of this time should I charge my client?

I know this is a lot for one posting, but I really need to get some results soon and this is just a small fraction of what I'd like to ask. I beg your indulgence and help. Thank you!
Next
Reply
Map
View

Click here to load this message in the networking platform