Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
oWord = CREATEOBJECT("word.application")
oWord.Documents.OPEN(cWordTemplate)
loTemplate=oWord.SELECTION
loTemplate.WholeStory
loTemplate.COPY
loDocument=oWord.Documents.ADD()
SELECT EMP2
GO TOP
COUNT TO nCount
GO TOP
DO WHILE !EOF()
x = x + 1
WITH oWord
loSelection = oWord.SELECTION
loSelection.PageSetup.TopMargin = 30
loSelection.InlineShapes.AddPicture(emp2.pic)
loSelection.PageSetup.RightMargin=50
loSelection.PageSetup.LeftMargin=50
loSelection.typeparagraph
loSelection.typeparagraph
loSelection.typeparagraph
loSelection.PageSetup.BottomMargin = 30
loSelection.FONT.SIZE = 12
loSelection.FONT.NAME = "times"
loSelection.TypeText(ALLTRIM(ldDate))
loSelection.typeparagraph
loSelection.typeparagraph
loSelection.Font.Bold = .T.
loSelection.TypeText(ALLTRIM(PROPER(EMP2.empfname))+" "+ALLTRIM(PROPER(EMP2.emplName)))
loSelection.typeparagraph
loSelection.FONT.SIZE = 10
loSelection.FONT.NAME = "times"
loSelection.Font.Bold = .F.
loSelection.TypeText(ALLTRIM(EMP2.address))
etc......