The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
ATINVOKEMETHOD |
Post Reply |
Author | |
Jim P
Newbie Joined: January 19 2015 Location: United States Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: August 10 2015 at 1:15pm |
Hello,
I am trying to populate a table in a Microsoft Word table. Part of the code is listed below. I can send data to the top row only. I am using trying to set the cell index using the ATINVOKEMETHOD argument. I have also tried to fill the table by setting rows and columns. Can anyone see what I am doing wrong? Is there a better way to produce printed output rather than messing around with Word? Thank you.
IDX = '' CALL ATGETPROPERTY(DOCUMENT.OBJ, 'TABLES', TABLE.OBJ, ERROR, OPTIONS) CALL ATINVOKEMETHOD(TABLE.OBJ, 'ITEM', 1, TABLE.ITEM, ERROR, OPTIONS) CALL ATGETPROPERTY(TABLE.ITEM, 'RANGE', RNG.OBJ, ERROR, OPTIONS) CALL ATGETPROPERTY(RNG.OBJ, 'CELLS', CELLS.OBJ, ERROR, OPTIONS) CALL ATINVOKEMETHOD(CELLS.OBJ, 'ITEM', '', CELL.ITEM, ERROR, OPTIONS) FOR I = 1 TO 5 FOR J = 1 TO 3 IDX = I:@VM:J CALL ATINVOKEMETHOD(CELLS.OBJ, 'ITEM', IDX, CELL.ITEM, ERROR, OPTIONS) CALL ATGETPROPERTY(CELL.ITEM, 'RANGE', RNG.OBJ, ERROR, OPTIONS) CALL ATSETPROPERTY(RNG.OBJ, 'TEXT', 'TEST', ERROR, OPTIONS) NEXT J CALL ATGETPROPERTY(TABLE.ITEM, 'ROWS', ROWS.OBJ, ERROR, OPTIONS) CALL ATINVOKEMETHOD(ROWS.OBJ, 'ADD', '', ROW, ERROR, OPTIONS) NEXT I |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |