I have been going through the training material using Word 2003.
I am getting an error message on the item list (page 13 of the user guide)when I try to create the stylesheet:
The call to member appendChild failed. msxml4.dll returned the following message:
Only one top level element is allowed in an XML document.
Has anyone else tried this yet?
(The error is occuring in codeunit 680 and the debugger shows it knows it is processing Word 2003)
Another thing:
You should enlarge the local variable "TempOptionString" in Function "SetReleationShipsFilter" of Codeunit 682. Otherwise it will produce a text overflow in cases of long option strings.
Exiting and getting back in fixed the problem - thanks - now the only proble is, it did not show the datalink caption in the document header.
I am not very skilled in Word. I did a view Header and Footer and inserted the merge field Datalink - which looks like it should then print the caption I entered in the option tab - is there anything else I need to do in Word?
I don´t know if I understand correctly what you are trying to achieve or what you are missing. But if you´re missing your individual caption for the DataLink try to deselect the "Use Sytem generated Caption" field. And, of course, you have to place the DataLink field into the merge document in Word.
I am trying to insert the data caption into the document header.
It appears the style sheet is ignoring the document header.
If I put the DataLink elsewhere in the document it prints.
Hmm, no idea. I had no problem with it.
But I found another problem: After a backup and a restore on a new place my style sheet definition are still there, you can´t use it however. You don´t find it in the Stylesheet List after pressing the Send Optinons Button in the symbol bar. After performing "Update Manage Stylesheets" it appears there but you still can´t use it properly because the field values will not be passed to the Word document. Any idea?
Did you try bringing up the Word doc and making a minor change, then going through save and the folloeing steps?
It sounds like there is some location specific code somewhere.
Anyone succeeded in creating the XML document from within AL code?
I digged into codeunit 403 but when it s debugged you enter directly with filled up DATAXML vars in function launchapp.
I can imagine that we want to create documents in batch...?
Offcourse we can build our own dataxml var and then use the codeunit 403.
Hmm, no idea. I had no problem with it.
But I found another problem: After a backup and a restore on a new place my style sheet definition are still there, you can´t use it however. You don´t find it in the Stylesheet List after pressing the Send Optinons Button in the symbol bar. After performing "Update Manage Stylesheets" it appears there but you still can´t use it properly because the field values will not be passed to the Word document. Any idea?
I've this problem as you, but I find out the problem finally, it's because my Regional & Language Options. Seems that the "Convert Mail Merge to Style Sheet" and "Update Manage Style Sheets" function only works when the regional setting is "English"
After I changed the regional seeting, everythings works fine, even below error also solved.
"The call to member appendChild failed. msxml4.dll returned the following message:
Only one top level element is allowed in an XML document. "
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
https://mbs.microsoft.com/partnersource ... page=false
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I am getting an error message on the item list (page 13 of the user guide)when I try to create the stylesheet:
The call to member appendChild failed. msxml4.dll returned the following message:
Only one top level element is allowed in an XML document.
Has anyone else tried this yet?
(The error is occuring in codeunit 680 and the debugger shows it knows it is processing Word 2003)
http://mibuso.com/blogs/davidmachanick/
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
You should enlarge the local variable "TempOptionString" in Function "SetReleationShipsFilter" of Codeunit 682. Otherwise it will produce a text overflow in cases of long option strings.
Josef Snayberk
I am not very skilled in Word. I did a view Header and Footer and inserted the merge field Datalink - which looks like it should then print the caption I entered in the option tab - is there anything else I need to do in Word?
http://mibuso.com/blogs/davidmachanick/
Josef Snayberk
It appears the style sheet is ignoring the document header.
If I put the DataLink elsewhere in the document it prints.
http://mibuso.com/blogs/davidmachanick/
But I found another problem: After a backup and a restore on a new place my style sheet definition are still there, you can´t use it however. You don´t find it in the Stylesheet List after pressing the Send Optinons Button in the symbol bar. After performing "Update Manage Stylesheets" it appears there but you still can´t use it properly because the field values will not be passed to the Word document. Any idea?
Josef Snayberk
It sounds like there is some location specific code somewhere.
Are you using Word 2003 or Word 2007?
http://mibuso.com/blogs/davidmachanick/
I digged into codeunit 403 but when it s debugged you enter directly with filled up DATAXML vars in function launchapp.
I can imagine that we want to create documents in batch...?
Offcourse we can build our own dataxml var and then use the codeunit 403.
I've this problem as you, but I find out the problem finally, it's because my Regional & Language Options. Seems that the "Convert Mail Merge to Style Sheet" and "Update Manage Style Sheets" function only works when the regional setting is "English"
After I changed the regional seeting, everythings works fine, even below error also solved.
"The call to member appendChild failed. msxml4.dll returned the following message:
Only one top level element is allowed in an XML document. "