Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TEXTMERGE/Word editing freezing
Message
From
10/08/2004 14:29:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
TEXTMERGE/Word editing freezing
Miscellaneous
Thread ID:
00932131
Message ID:
00932131
Views:
61
I am generating letters based on a memo field in a table using SET TEXTMERGE TO c:\letter.txt. I then open c:\letter.txt in Word and allow users to change the letter. All has been fine for years until recenttly. One user (with Word 2003) can open the letter fine in Word, but if he tries to save after editing, Word freezes. He can save and exit Word fine IF he doesn't make any changes to the documents.

If I remove the TEXTMERGE text from the Memo fiel and just manually enter info, the saving/exiting in Word works fine.

Has anything changed with TEXTMERGE?

This is my Word editing code:

loWord=CREATEOBJECT('Word.Application')
loWord.Documents.Open('c:\letter.txt')
loWord.Selection.WholeStory
loWord.Selection.Font.Name = "Times New Roman"
loWord.Selection.Font.Size = 12
loWord.Selection.HomeKey()
loWord.ActiveDocument.SaveAs('c:\letter.txt',0)
loWord.Visible = .T.


thanks

bonnie
Next
Reply
Map
View

Click here to load this message in the networking platform