Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Automation - Word2002 vs. Word97
Message
De
28/10/2002 14:19:56
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Word Automation - Word2002 vs. Word97
Divers
Thread ID:
00716139
Message ID:
00716139
Vues:
54
I created a process in VFP7 which creates a Word Document for Word 2002.

The following is a code snippet that runs fine for the Word 2002 in WinXP.

However, my customer has Word97 loaded on a WIN98 machine.

The result of this snippet on their machine is ... it builds the table with 6 rows and 4 columns with no data in the cells. That means the program fails somewhere after the 2nd line of code in this snippet.

Just wondering if someone happens to know what the problem might be.

I don't think I will be able to code this for Word97 but thought someone might happen to know what is wrong and that might fix everything. I know I am dreaming but I can hope can't I ?

Any other ideas would be welcomed.

oRange.Collapse(wdCollapseEnd)
oTable = oDoc.Tables.Add(oRange,6,4)
oTable.PreferredWidth=nTableWidth
oTable.Columns.AutoFit
* Row 1, Column 1
oRange = oTable.Rows[1].Cells[1].Range
oRange.InsertAfter(ALLTRIM(qheads.name))
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform