Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation help, Please!
Message
 
To
08/02/2000 08:32:22
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00328706
Message ID:
00328870
Views:
22
Paul,

Have you used the Macro recorder to find out what code applies to your manual commands. Once you know the VB Script code,
turning it into VFP is usually pretty easy.

A tip is when the Macro recorder option is running, use menu command to adjust column widths, etc. Resizer bars don't work when
Macro recorder is on. And once you go into VB Script editor, is has the commands needed to emulate what you did programmatically.

HTH,
Ed

>Hello everyone,
> I posted a message a few days ago about an aspect of automating Word. I don't know if the message wasn't read, or if the answer just wasn't known, but I didn't get any responses, so here's the basic question again.
>
>I use this code to create a new column in Word because I need some text left justified, and on the same line I need other text right justified:
>
>WITH WORDFILE.ACTIVEDOCUMENT.PAGESETUP.TEXTCOLUMNS
> .Add(wordfile.application.inchestopoints(2.5), wordfile.application.inchestopoints(.25), .f.)
> .LINEBETWEEN = .F.
>ENDWITH
>
>On the same page, though, I then need to reduce the column count back to one column from that point on in the document. By hand, this is no problem, but programatically, all of my efforts have resulted in setting the entire document back to a column count of 1 instead of just from that point on. Can anyone help me out with this one?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform