Navision to Word, Table and Variable Problem

KhristianKhristian Member Posts: 2
Hi.

I am pretty new to NAV and i am struggling with with some problems in NAV.

First i want to update the content of an existing DOCVARIABLE in Word.
I know how to add a new one
Variable := Variables.Add(VariablenName);
Variable.Value := 'XXXX';
Name	DataType	Subtype	Length
Variable	Automation	Unknown Automation Server.Variable	
Variables	Automation	Unknown Automation Server.Variables	
But i dont know how to update the content of an existing variable.
Background: A customer wants update a word document, but deleting and creating a new one is not an option,
cause of some user text.


The second problem is that i have to "rebuild" the table in that document. Means that i want to delete every row of Table 1 or 3 or 9 except only the first, so that i dont loose the position of the table. After that i want to insert new rows with new content.
I already know how to insert a row and fill a cell in that table. My idea was to determine the max rows of Table 1 or 3 or 9 and that delete everyone except the first one.

I hope you can understand my really bad school english, sorry for that.

THX for helping.

Greeting from sunny Berlin
Khristian
Sign In or Register to comment.