Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Output off a memo field to a word doc
Message
 
À
26/11/2003 07:54:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00853627
Message ID:
00853669
Vues:
16
You may start with something like this:
oWord = CREATEOBJECT("Word.Application")
oWord.documents.open("c:\vfug_nl_2003_11.txt")
oWord.visible=.t.
.....
OPen method has syntax like:
*expression.Open(FileName, ConfirmConversions, ReadOnly, AddToRecentFiles, PasswordDocument, PasswordTemplate, Revert, WritePasswordDocument, WritePasswordTemplate, Format)

So you can open the file in the format you wish.

>Hi,
>
>i have the following situation : i have a file with memo fields. The information in these fields are changed (via set textmerge on) depending the information i find in another dfb and than stored in a text file. This text file is showed to the user and this user can manipulate the text file. Once this files is closed the user can print him out or fax it to somebody. There is no need to save the changed textfile back to the memo field.
>
>my question : knowing that this working methode gives no graphical possibilities (bold,underline,....) i was wondering if i could do the same stuff but instead to do the output to a txt file doing the output to a word document. I know i can create a word document doing cMyDoc=createobject('word.docmument') but i dont know how to transfere the data to the document.
>
>Can somebody help me with some samplecode or telling me where i can find some info how i can manipulate data and import it into a word document ?
>
>Thnx.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform