Hello,
First of all I have to say that I'm a beginner in programming.
I want to create a Word Document directly out of a Navision Report. Unfortunately I don't know the C/AL Code that will create a New Word document. First of all I have to create a new document with some text in it. Can some body tell my how I make it in Navision 3.70.0.14988 ?
Thanks for yor Help
Marc
0
Comments
Also in the Application Designers Guide (on Product CD) in "Extending C/al" Chapter there is a step by step example of how to write a letter in MS Word.
http://www.BiloBeauty.com
http://www.autismspeaks.org
For any queries you can also visit my blog site: http://msnavarena.blogspot.com/
But if editing is involved then I use Crystal Reports which exports a report perfectly to word.
there are many ways to do this i guess. You could create the doc in word and use c/odbc or odbc to bring the data TO word instead of the other way around.
http://www.BiloBeauty.com
http://www.autismspeaks.org
I found this Code
It needs some Globals:
Name DataType Subtype Length
TemplateName Text 255
WordApp Automation 'Microsoft Word 11.0 Object Library'.Application
WordDoc Automation 'Microsoft Word 11.0 Object Library'.Document
WordRange Automation 'Microsoft Word 11.0 Object Library'.Range
It locks like this is the right funktion but there is a bug an i don't finde it. can some body help me ?