Information générale
Catégorie:
COM/DCOM et OLE Automation
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement