Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MS Word OLE problem
Message
From
18/04/2001 08:20:53
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00496352
Message ID:
00496593
Views:
23
>VFP 6.0 SP5
>MS Word 2000
>
>Why do the most simple examples haunt my efforts. Long story short! Using Ole to set a font size in word example below:
>

I hate to correct Brad, but your approach (using oDoc.Range() and InsertAfter()) is better code. However, you don't need the Collapse call in this case because in a new document, the Range is already just the insertion point.

I can't see anything wrong with the way you're setting the font and I've written code like this.

Oh, one thought. What if you set the Font.Name first, then Font.Size. Maybe whatever the default font (actually, the font of the Normal style in the Normal template) can't handle the size you're setting.

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform