G
gnn
I am a beginner with ole automation.
From Powerbuilder, I am trying to add a new word document from a template
into an ole object
My code is pretty simple -
string l_s_template /* Holds location of the template .dot file */
l_ole_doc = l_ole_word.Application.Documents.Add(l_s_template)
Most macros from the template function okay except that on a couple of tabs
from the templates toolbar, i get vba error messages-
1. Runtime error 5941 - the requested member of the collection does not exist
2. Run-time error '-2147467259(80004005)': Automation error, unspecified error
3. Run-timeerror '5' : Invalid procedure call or argument
The above errors do not happen when i create a document by doubleclicking on
the .dot file from windows explorer. Any suggestions on how i can overcome
this problem?
Thanks
From Powerbuilder, I am trying to add a new word document from a template
into an ole object
My code is pretty simple -
string l_s_template /* Holds location of the template .dot file */
l_ole_doc = l_ole_word.Application.Documents.Add(l_s_template)
Most macros from the template function okay except that on a couple of tabs
from the templates toolbar, i get vba error messages-
1. Runtime error 5941 - the requested member of the collection does not exist
2. Run-time error '-2147467259(80004005)': Automation error, unspecified error
3. Run-timeerror '5' : Invalid procedure call or argument
The above errors do not happen when i create a document by doubleclicking on
the .dot file from windows explorer. Any suggestions on how i can overcome
this problem?
Thanks