I needed to make a sheet of a Word file where it contains fields to be filled in, could create several pages and I tried with...
- Code: Select all Expand view RUN
LOCAL oWord,a:=1
oWord := TWord():New()
oWord:OpenDoc( "C:\document\TEST.docx" )
DO WHILE a < 11
oWord:STARTPAGE()
oWord:Replace('@number', STRZERO(a,2) )
oWord:ENDPAGE()
a++
ENDDO
oWord:Visualizar()
Thank you!