Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automating Word Tables
Message
 
 
To
13/04/2001 11:37:17
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00495304
Message ID:
00495328
Views:
13
Here is the dilema. In one particular section, I have the following text that follows the table:
The draft permit establishes technology-based effluent limitations for {DISCHARGE_LIMITS_LIST} based on those established in the effluent limitations guidelines (40 CFR {LIMITS_GUIDELINE_CFR}) applicable to the facility.

{LIMIT_CALCULATION_EXPLANATION}


No table/text combo is the same either. The variables are in {braces}. I have to duplicate that text below each copy of the table. The values in the table will be different, and the values of the text variables are going to be different for each copy of the table as well.

Ideally, I think I would like to retrieve the text part into a VFP string. Create a new string with the variables replaced with their values, then send the new string back to Word. Then make a copy of the table after that text. Create another new string with its variable values, send to Word.

My overall goal is to try to keep this document as one complete template so the app owner can make changes to it. I store the Word doc template in a VFP memo field [FileToStr() and StrToFile() are sooooo coooool for this!]. I had thought of taking each table/text combo and store it in its own memo field so I could manipulate a copy in VFP for each instance and send that to Word. If I do that, I now have a PITA approach for allowing the app owner to modify the template.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform