Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to control Word converters in VFP?
Message
De
31/03/2001 12:40:10
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00490597
Message ID:
00490611
Vues:
8
Sorry Curtis, I made one mistake in my message, you cannot use FormatName - "WordStar 3.3 - 7.0" to get reference to FileConverter object, you have to use the ClassName or its Index in collection. The correct code should be as follows:
lcCassName = ""
For Idx = 1 To oWordApp.FileConverters.Count
    If oWordApp.FileConverters( idx).FormatName = "WordStar 3.3 - 7.0"
        lcClassName = oWordApp.FileConverters( idx).ClassName
        Exit
    EndIf
Next
If Empty( m.lcClassName)
    && you do not have "WordStar 3.3 - 7.0" converter installed
EndIf
...
myformat = oWordApp.FileConverters( m.lcClassName).OpenFormat
...
With best regards,
Alex

>Thanks Alexander, I'm a beginner using Word macros.
>I really appreciate the help.
>
>-Curtis
Alex
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform