Welcome! Log In Create A New Profile

Advanced

[WD12] Word automation

Posted by Louis Verbraak 
Louis Verbraak
[WD12] Word automation
May 18, 2009 03:49PM
Hello to you all,

I'm looking at the features of Word automation. Perhaps I can use this for printing some of my reports. Can anybody tell me how I can fill a cell in a table and how I can add a row to a table.

Thanks for all your tips.
Louis Verbraak
Re: [WD12] Word automation - FOUND IT
May 18, 2009 04:32PM
Hello,

I found the way to add a row:
:m_oWordObject>>ActiveDocument>>Tables[1]>>Rows>>Add()

And to fill a cell:
:m_oWordObject>>ActiveDocument>>Tables[1]>>Cell(7,3)>>Range = "Hallo"

It's not clear to me, where to find the right (and best) code. When there is a better way to solve these problems I'ld like to hear them from you.



Edited 1 time(s). Last edit at 05/18/2009 04:54PM by Louis Verbraak.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: