Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automating Word Tables
Message
De
13/04/2001 14:34:48
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00495304
Message ID:
00495378
Vues:
17
Hi Mark,

So what you are saying is that in some caes, there may be text (disclaimers, notes, et al) that logically go with the table printed before it....hmmm. OK, in that case you could place a Bookmark before the Table and a Bookmark after the text and grab *that* Range for Copy and Paste.

>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.

Or do a search and replace using Automation once you have pasted the copied table and text back into 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.

PITA being an OLEBoundControl? :-)

I still think that you really don't have to store ...errr...clauses (table/text combos) to simply manipulate the changes.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform