Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation - Word2002 vs. Word97
Message
From
28/10/2002 14:49:25
 
 
To
28/10/2002 14:19:56
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00716139
Message ID:
00716147
Views:
24
Word97 tables don't appear to have a 'PreferredWidth' property. So that might be your problem.

Alan

>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))
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform