Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation - Word2002 vs. Word97
Message
 
To
05/11/2002 12:49:47
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00716139
Message ID:
00718987
Views:
18
?oWord.ActiveDocument.Tables(1).Columns(1).Width
For Help try ..\Msoffice\Office\VBAWRD8.HLP

>Well, let's suppose that is the case. Does anyone know the syntax for assigning a column width in a table in Word97 ?
>
>Also, I have looked high and low for the WORD9.CHM file (Word 97 VBA Help file) but am unable to locate any. Can anyone help me out with that ?
>
>
>
>>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
Reply
Map
View

Click here to load this message in the networking platform