A customer has buyed a new pc and installed with Word version 2003.
I got problems with the next codelines
Templatename := 'c:\12345.dot'
CREATE(wdApp);
wdDoc := wdApp.Documents.AddOld(TemplateName);
The last line give the next error:
The call to member AddOld failed. Microsoft Word returned the following message: There is not enough memory. Save the document now.
Other users don't have this problem.
Does anybody know what the problem is?
Kind regards
Frank
0
Comments
RIS Plus, LLC
Does the message also occur when the template is opened in word manualy?
RIS Plus, LLC
Must be a programmers thing though..
Sorry; joke... :?
I have seen a similarly weird message when opening a very large document in Word itself (not from within Navision but from windows explorer), although that document was not large enough to bog down the RAM. It feels to me like this is a Word issue, not a Navision coding issue. If I were to guess I would say there is something going on with your template.
Try to create a new template with nothing in it, so just base a new template on normal.dot and save it as test.dot and try your code again.
RIS Plus, LLC
The computer has the problem alsoo if you open the .dot document with Word manualy.
After that conclusion we opened the document as .dot document and saved the document as a .dot file. After that action the problems were solved.
Thanks for the help suggestions.
DenSter the greetings to your wife.
Frank