Hi dear ... all!
I have an "extends RunBaseBatch" class, where are processed some data and "exported" in a Word document (template based). So when i ran this code on client (RunOn property : Client) all is well. But when i'm trying to run it on server (RunOn property : Server) it returns an error after line bmaks = document.bookmarks();
[...]
Error executing code: COM object not initialized.
(S)\Classes\COM\bookmarks
[...]
Someone had such experience?
I want to mention that I have the MS Office installed on server and Word object seems to be successfully initialized.
after some investigations ...
documents = word.documents();
document = documents.add(template);
after this sequence : document = null
document = documents.add();
after this sequence : document = _Document
WHY? if template exists ... template = "D:\AxProjects\TimeCards\TimeCard.dotx"