Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Linked form fields with MSword
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Linked form fields with MSword
Miscellaneous
Thread ID:
00601711
Message ID:
00601711
Views:
61
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
Reply
Map
View

Click here to load this message in the networking platform