Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Linked form fields with MSword
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Linked form fields with MSword
Divers
Thread ID:
00601711
Message ID:
00601711
Vues:
63
Hi friends,

i have a form and own combos,textboxes after i have filled the textbox areas i am sending its to a report (thisform.text1.value=xtext1,... on the report field names is xtext1,...) it runs well but read only user cannot add any additional things to the report .

anyway i want to this ,

after i have filled the areas i want to export its to MSword with the same order and style like report but EDITABLE on MSWord.

( PS : i have tried this code it runs but it was not enough..

loword = CREATEOBJECT('word.application')
loword.Documents.Add() && you can also use loword.Documents.open(myfile)
loword.Visible= .t.
loword.Selection.InsertAfter("Sayý :"+xtext1)
loword.Selection.TypeParagraph &&bir satýr aþaðý
loword.Selection.InsertAfter("Konu :"+xtext2)
loword.Selection.InsertAfter("Tarih :"+DTOC(xtext3))
loword.Selection.InsertAfter(xtext4)
loword.Selection.InsertAfter(xtext5)
loword.Selection.InsertAfter(xtext6)
*...
)

so how can i do this export and after edit on MSWord and how can i create a form which is linked MSword ..

( PS 2 : i have also tried Activex Control (Olecontrol) on the form it runs but save and save as buttons is disabled why ? )

Thanks for the help
Répondre
Fil
Voir

Click here to load this message in the networking platform