Using NAV 5.0 AT
Wherever I try to add global variable of Word.Application automation, I get this error. Who knows, why?
If I try to delete it, confirmation appears...
P.S. If I create local var, everything is ok...
It is hard to swim against self bloodstream... (c) Old, experienced kamikadze.
0
Comments
The second error message is since word 12 library (NAV has here a problem with the Name length of the classes and functions)
A note regarding the use of images in your posting: It is waste of diskspace/bandwidth to save a NAV-error message as image and upload it to the forum. You can just as easily use Ctrl-C on the error-message in NAV, and press Ctrl-V in the message-body in this forum. This way, the error-message is shown as text.
This will give us exact the same information, but without wasting diskspace and without slowing down the forum.
I've tried even 1-char variable - the same error...
moreover, it is my 1st global variable as word12.application automation.
@garak
I didn't do anything special, just ran NAV, opened base, designed codeunit/form/table/etc, tried to add global word12.application automation... it was added, but doesn't allow me to compile object i'm designing - error appears... If I try to delete this variable, I get: I didn't add/change any triggers!
The same!
It seems to be Automation issue...
Don't anyone else has same :bug:?
Regards
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
So i got the same error message, but i could help me (after a pause to think) ;-)
I "added" the WordApp Variable 'Microsoft Word 12.0 Object Library'.Application. then is saved my object but doesn't compile it.
After that is export it as text and open it with notepad. I search for "MAILMERGEDATASOURCEVALIDATE" and i see, oh, there are two events defined in the textfile with the same name (the last one has only a 2 at the end) So i delete this event from the textfile (because in my solution i doesn't need events). Then i import the textfile, open it from object designer and compile it. Wow, it works ;-)
A other, more simple, way is to use the variable as "local" and not as global. But this is not ever possible ......
Regards
:oops: didn't see at all...
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
If I have time, I'll rewrite my solution, which uses only locals :?
But it works :-k
P.S. Thanks for direction =D>