Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word automation - replacing text
Message
From
13/10/2009 11:33:59
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
13/10/2009 07:11:23
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01429077
Message ID:
01429191
Views:
55
>My client (who does part of the programming) wants to have a template, where the user can put text placeholders in specific places. Since the end-user will do that, a template may be easier to work with than a merge.

I think merge is a misunderstood feature:) The end user, who doesn't know anything about databases and maybe computers in general but knows a little how to type in word could do it. He would simply type his document in word, inserting fields (MergeField) as placeholders. He could format it as he likes and then save. You would get a list of field identifiers from that document to supply from your data. That document is your template and you could 'merge' either from a VFP table (I think you want a typical one record data - you could pass it as SQL) or say from a text file.

PS: I wouldn't say this part for sure but if I remember right, in word typing with chevrons were auto creating that as a mergefield - vaguely something like that?
And word automaps some of them (ie: it knows FirstName, First Name, FName map to first name).

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
Next
Reply
Map
View

Click here to load this message in the networking platform