Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement