Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word 97
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00123267
Message ID:
00123403
Vues:
20
>>I am developing an application in VFP that allows the user to specify certain characteristics about the specific product that is being sold and shipped (low speed pump, gear ratio, etc.) There are about 70 "questions" the user "answers" through optiongroup buttons, comboboxes, etc. Once they have completed the form, I need to write the info to a new Word 97 document, which will then be used in a mailmerge of the master documentation for that series of products, with the "answers" they have given used as variables in the Word document, allowing a product specific manual to be produced from the master manual. When I write their "answers" out to the new Word document, I also need to preface it with the "field names" contained in the master Word document so that the merge can operate properly.
>>
>>Basically, I need help in doing the following:
>>
>> - Programmatically creating a new Word97 document, writing a list of predefined strings to it (the field names in the master doc), then the "answers" the user has given. (I don't want to open the document or let the user see it, just create it and write to it)
>>
>> - Save the newly created document with a specific filename (the same each time) without the user having to answer any "Overwrite?" prompts
>>
>> - Close the newly created document
>>
>>I can tackle generating the mail merge from VFP by utilizing suggestions to accomplish the above.
>>
>>I am not very familiar with OLE, and what I do know was changed when Word went to version 7. I can open a Word97 doc in the background, write text from a VFP table to it (or from an array, etc.), but I can't seem to grasp the syntax for saving it with a filename and closing it.
>>
>>Any assistance would be appreciated.
>>
>>Patric
>
>In that version of VFP (5) you have to use word.basic to save the file. In the next version you can use word.application. I've got several OLE samples on my webpage - some from me, some from MS and some from other developers. Also, David Frankenbach has some on his page. There's a reference to his page on mine. See the tag line below for the url.

Hi John,

I´m interested also in the examples, but I can´t see "tag line below for the url". It´s not only with your message I´m not receiving the messages with the signatures anymore.

Regards,
José Augusto Cavalcanti
Global Connection
jose.cavalcanti@globalconnection.com.br
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform