Information générale
Catégorie:
COM/DCOM et OLE Automation
?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))
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement