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:
00157190
Vues:
85
Juan,

I copied and pasted that code into both the VFP5a and VFP6 command window, highlihted it, rightclicked and selected Execute Selection. It ran fine both times.

I've not yet installed the VS98 SP1, nothing I'm actively working on requires it, so I'm waiting till I get the MSDN CD instead of doing a multigigabyte download from the net. If you go to the MS site you can get the VS98 SP1. I'm also Win95 OSR2 instead of NT.

>Reinstalled Office 97 and re-applied SM1. Applied SP4 to my NT 4.0 OS.
>
>Tried the 5 lines of code you specified:
>
>oWord = createobject( "word.application" )
>oWord.Visible = .t.
>oDoc = oWord.Documents.Add()
>oDoc.PageSetup.LineNumbering.Active = .f.
>oWord.Selection.InsertAfter( "Test" )
>
>Same error occured! I tried the same code in VFP5 and it worked beautifully!
>
>You had previously mentioned that this code ran perfectly in your copy of VFP6.
>
>I understand that MS was coming out with a service pack for Visual Studio 6. Do you know if that SP is out yet? If so, have you applied it?
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