H0726.02.bmp"TEXT-ALIGN: justify">I am currently tryuing to print a report to Batch in Dynamics Ax 2009. In particular, I am trying to use the AOS Server as a batch server, and not have to run a Batch Client. I have used them extensivly in earlier AX versions, but having some slight issue in Ax 09.
When I try to save the report to file [ PDF ] as a batch job, the AOS server performs the batch task without issue. File saves where its supposed to, and at the right time. This is great. I dont need to have a batch client working.
When I try to print the same report again as a batch job, but to a printer direct, the batch status on the Batch Job changes from Waiting to Executing, but never gives a result / output. The only way I can get the report to run is if I use the batch client [ Basic > Periodic > Batch > Processing ]. I was hoping to phase this out [ saves maintaining a batch client and tyying up a licensed user ] and not use a batch client, and want to know if I am doing anything wrong.
Additional Notes:
Feels more like I am missing something simple in my understanding on this. If anyone has any experience on this issue, it would be appreciated!
Regards,
Nathan Aichinger
*This post is locked for comments
Hello Nathan,
Can you share the code you used to accomplish this?
"When I try to save the report to file [ PDF ] as a batch job, the AOS server performs the batch task without issue. File saves where its supposed to, and at the right time. This is great. I dont need to have a batch client working."
I get the following message when I try to print to a file using a batch job that does not run on the client.
"Will write job 'Confirmation - Report' to the Print archive instead of to the screen."
Thanks
Its because your trying to print to a client side printer driver, and this will never work. You have already enabled use Printers on the AOS. Now for the printer you must select a printer driver that lives on the AOS to print too.
This way when ran under the server context, it will use the server printer. This is why your seeing the client side context because it's trying to print to a client based printer and not one from the AOS.
Also another word of advice, if you have image files in your report, for say an invoice or something, you can't do batch printing at the server context or AOS level. Other than that... this should work fine.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,232 Super User 2024 Season 2
Martin Dráb 230,064 Most Valuable Professional
nmaenpaa 101,156