General information
Category:
Coding, syntax & commands
Title:
TEXTMERGE/Word editing freezing
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only