Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page X of Y
Message
From
08/07/2006 12:00:48
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
08/07/2006 11:15:35
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01134682
Message ID:
01134692
Views:
16
>hi all,
>
>i want to display - through OLE - the page numbers in the PAGE FOOTER section of a MS WORD document in the style - Page X of Y.
>
>The Visual Basic that syntax i got through the generation of a macro was as follows -
>
>NormalTemplate.AutoTextEntries("Page X of Y").Insert Where:=Selection.Range
>
>but, i do not know how to convert the above into the correct VFP6.0 equivalent.
>
>can someone please help me out ?
>
>with sincere thanks in advance.

oWord.NomalTemplate.AutotextEntries("Page X of Y").Insert(oWord.Selection.Range)

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform