hi all. I have a problem with a report run from nas. Nas run a codeunit that call report: layout is wrong. The header is not printed, body is print too much right than original. Examle: original: HEADER ---- BODY1 ---- BODY2 ---- FOOTER — Error report: ----- ------- BODY1 ------- BODY2 ------- FOOTER If i run it from an interactive session it runs ok. WHY???[xx(][xx(][xx(][xx(] I have nav 3.70 with hotfix xxx.09. User that run nas is the same which i run from interactive sesion, and it have administrator permissions. I don’have ay idea… help me !!! [B)][B)][B)][B)] Thanks, all. Mirco
Perhaps because when the report runs via NAS it is runnung on the server and is looking for the user options on the server for the printer; Windows stores printer attributes per user per computer.
The point is that we have seen that running the same codeunit, logged into Navision with the same user on the server (via a normal client/server session) the report prints well. So?
Under which account is the NAS service running and when you yourself login als this account what happens?
At the moment we are using Administrator. Via NAS, the Codeunit works fine, except for printing: we receive from an external logistics shipments data and then we post Sales Shipments (hundreds every day). The codeunit simply loops searching for the records in a table and when the records come we run the codeunit 80 (Post & Print). If I log in with the same user on the server and simply run the said Codeunit from Object Designer the report works. As said, via NAS the reports goes to the right printer, but it is not printed correctly. At the moment we have solved posting without printing and then printing manually all the shipments, but we hope to find a better way… Ciao
Had the same problem, Navisions response is that the NAS is not able to look at the margin settings of the report, so it prints it with the default values. Not sure if it is going to be fixed in a later version. I got around it by having a workstation startup a single instance codeunit that scans for documents to be printed (a flag is set), it then prints it and turns of the flag…not the best solution, but you have to work with what you have