Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MS Word OLE problem
Message
De
18/04/2001 08:20:53
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00496352
Message ID:
00496593
Vues:
22
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform