I'm trying to Export e Report in Navision to a Word Document but I have dificult in pass the values with the function GoTo, can anyone give me an example how to do that.
or I have entered in the doc my marks and try to find and replace them like:
a:='<EXPIRATION DATE>';
IF WordAF.ActiveWindow.Selection.Find.Execute(a) THEN
WordAF.ActiveWindow.Selection.TypeText:=FORMAT(SalesOrder."Service Contract Expire Date");
END;
Comments
I usually do something like: or I have entered in the doc my marks and try to find and replace them like:
Or in your case with the goto: where a = goto line (and goto Page=1, goto section=2...), b=gotofirstfind, c=line number (or page number or ...). The a,b,c,d vars are Variants.
Arhontis
https://forum.mibuso.com/search