General information
Category:
COM/DCOM and OLE Automation
Environment versions
Network:
Windows 2000 Server
>hi all,
>
>my client's were running my vfp6 software on WIN98/Office 2000 Professional and while doing so through my software i was generating a MS WORD document which had tables in it through the following code -
>
>oWord.ActiveDocument.Tables.Add(oWord.Selection.Range, 1, 3)
>
>the above line of code used to create a table with horizontal and vertical borders.
>
>Now, my client has upgraded to WINXP PRO & MS OFFICE 2003 and the above line of code results in generating the table but NOT THE BORDERS.
>
>why is this happenning ? can someone give me a working solution to overcome the above ?? i need the borders to show for all the tables.
>
>with sincere thanks in advance.
Just add another parameter:
oWord.ActiveDocument.Tables.Add(oWord.Selection.Range, 1, 3, 1)
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only