Hi,
I would appreciate very much if anybody could help whith this one.
In the end of a report, my customer wants to print out certain word documents, wich is linked to the actual Items used in the report. We dont want to open the documents, just to print it. If it must be opened, it should be done in the background and after printing, the word instans should be closed again. I have the path to the wordfile and have succesfully opened the word documents using SHELL. After that it should be printed and word should be closed. But there I am stocked.
I have also tried to use the automation functionality for word. But I cant find any guidelines exept in the Developers guide, where the example shows how to create a new word document, but not how to open/print/close an existing.
If you could show me where to find guidelines for this, it would be fine - or perhaps you have a solution "out of the pocket"
Thank you in advance.
Comments
classExec %1 --command "[FileOpen(\"%1\")][FilePrint 0][FileExit 2]"
All found here here after 3 min of googling around
Slawek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
There you got me!
You see, I am a simple NAV C/AL-programmer. Therefore I am searching for a solution I can use in C/AL, and have found none until now. (ClassExec-commands can’t be used in C/AL).
So if I understand you correctly, you suggest that I get a small executable programmed with the exec commands and then call this with a C/AL-SHELL command in my report. Right?
It should, though, be possible to pass the path to the document!
I tried classexec and it works fine
I can sent the parameters with my SHELL command, so everything's OK.
Thank you very much for your help. \:D/
Can you please post your code? Thanks.
I tried. but I still have no idea how do it.