Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the best way to initalize Word97 from VFP6?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00156542
Message ID:
00157063
Vues:
69
Juan,

I just moved the whole VFP5 project into a VFP6 folder and reran the form that calls word from VFP6. It worked fine.

If I were you at this point I'd step back and just do a little .prg that starts the oWord object, creates a document and try to set some properties:

oWord = createobject( "word.application" )
oWord.Visible = .t.
oDoc = oWord.Documents.Add()
oDoc.PageSetup.LineNumbering.Active = .f.
oWord.Selection.InsertAfter( "Test" )

>After receiving your last message, I converted every function to a Method on my form and added a oWord and oWordDoc property. This way, I am sure of what objects I am dealing with.
>
>In addition, my version of Office97 was the original and I upgraded that to SR1. ( I've been trying to download Office97 SR2 but, that MS web page is not working properly. )
>
>Regardless, I am still having the same problem. It appears that the oWordDoc object gets corrupted somewhere along the line. I've tried commenting out the oWordDoc.PageSetup.LineNumbering.Active = .F. but then the problem reappears in a subsequent line.
>
>Have you tried doing this in VFP6?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform