Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating pages with pagebreaks in Word??
Message
 
 
To
19/03/2006 10:30:11
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01105651
Message ID:
01105796
Views:
40
#DEFINE wdPageBreak  7 

oWord = CREATEOBJECT("Word.Application")
oWord.Visible = .T.
oWord.Documents.Add()
oWord.Selection.TypeText("Some Text" )
oWord.Selection.InsertBreak(wdPageBreak)
>I have a table with 175 names, addresses and 2 pictures(1956 and now)
>I need to ceate a word doc with one page per person,
>the template contains a table with 2 columns, the caption on the left, teh text on teh right
>
>the text is replaced from the dbf via bookmarks
>Well this works fine for one page documents.
>now at the end of the scan I wand to insert a pagebreak and create a new page from the template.
>
>But I dont seem to be able to do that.
>
>how could this be done?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform