Discussion:
Server Side Printing with Batch Job
(too old to reply)
Tsk
2009-10-21 22:21:02 UTC
Permalink
Hi All,

I've been struggling for several days trying to get an Ax 2009 Batch job to
print a custom report from the batch server.

Everything prints out fine when running the class on the client side, but
when in batch, it just prints a blank sheet of paper.

No errors are logged when the job executes and there is nothing exceptional
about the report, i.e. Image on document which I've read will not work in
batch mode.

The configuration of the server is checked to allow "Print on Server"
The class does extend "RunBaseBatch"
The main is "public static server void main(Args _args)"
The "RunsImpersonated" method is set to return true.

I'm sure that I'm just missing one obscure something somewhere.
HELP... LOL

tIM
--
Just another struggling developer
Luegisdorf
2009-11-02 11:39:01 UTC
Permalink
Hi Tsk

Please Check these questions:
- Is the printer you have selected an AOS-Printer ("AOS: [Devicename]") and
not a local connected printer? Even the same network-printer is listed as
AOS-Printer -> AOS-Prefix and without, take the one with the AOS-Prefix!
- Does the report contains images? On server it is not possible to print
images in reports (AX 2009)

Best regards
Patrick
Post by Tsk
Hi All,
I've been struggling for several days trying to get an Ax 2009 Batch job to
print a custom report from the batch server.
Everything prints out fine when running the class on the client side, but
when in batch, it just prints a blank sheet of paper.
No errors are logged when the job executes and there is nothing exceptional
about the report, i.e. Image on document which I've read will not work in
batch mode.
The configuration of the server is checked to allow "Print on Server"
The class does extend "RunBaseBatch"
The main is "public static server void main(Args _args)"
The "RunsImpersonated" method is set to return true.
I'm sure that I'm just missing one obscure something somewhere.
HELP... LOL
tIM
--
Just another struggling developer
vng
2010-05-19 23:35:00 UTC
Permalink
Hi,

same problem here, I have a runbaseBatch class to execute a report and send
it by mail. It works fine on the client side however on the server side, I
receive a blank report.

Any ideas?
Thx,
Vincent
Post by Luegisdorf
Hi Tsk
- Is the printer you have selected an AOS-Printer ("AOS: [Devicename]") and
not a local connected printer? Even the same network-printer is listed as
AOS-Printer -> AOS-Prefix and without, take the one with the AOS-Prefix!
- Does the report contains images? On server it is not possible to print
images in reports (AX 2009)
Best regards
Patrick
Post by Tsk
Hi All,
I've been struggling for several days trying to get an Ax 2009 Batch job to
print a custom report from the batch server.
Everything prints out fine when running the class on the client side, but
when in batch, it just prints a blank sheet of paper.
No errors are logged when the job executes and there is nothing exceptional
about the report, i.e. Image on document which I've read will not work in
batch mode.
The configuration of the server is checked to allow "Print on Server"
The class does extend "RunBaseBatch"
The main is "public static server void main(Args _args)"
The "RunsImpersonated" method is set to return true.
I'm sure that I'm just missing one obscure something somewhere.
HELP... LOL
tIM
--
Just another struggling developer
m***@gmail.com
2013-11-27 11:45:49 UTC
Permalink
Hi,

Did you manage to solve this problem...? I am having the same issue...it is very urgent.

Regards
Melvin
Post by vng
Hi,
same problem here, I have a runbaseBatch class to execute a report and send
it by mail. It works fine on the client side however on the server side, I
receive a blank report.
Any ideas?
Thx,
Vincent
Post by Luegisdorf
Hi Tsk
- Is the printer you have selected an AOS-Printer ("AOS: [Devicename]") and
not a local connected printer? Even the same network-printer is listed as
AOS-Printer -> AOS-Prefix and without, take the one with the AOS-Prefix!
- Does the report contains images? On server it is not possible to print
images in reports (AX 2009)
Best regards
Patrick
Post by Tsk
Hi All,
I've been struggling for several days trying to get an Ax 2009 Batch job to
print a custom report from the batch server.
Everything prints out fine when running the class on the client side, but
when in batch, it just prints a blank sheet of paper.
No errors are logged when the job executes and there is nothing exceptional
about the report, i.e. Image on document which I've read will not work in
batch mode.
The configuration of the server is checked to allow "Print on Server"
The class does extend "RunBaseBatch"
The main is "public static server void main(Args _args)"
The "RunsImpersonated" method is set to return true.
I'm sure that I'm just missing one obscure something somewhere.
HELP... LOL
tIM
--
Just another struggling developer
Loading...