Print PDF from Navision Application Server

1

I have problem printing reports to PDF through bullzip from Navision Application Server (1) if user is not in Local Admin group (2). Only under both conditions.

In Nav code I'm doing the following: init bullzip automation object (set all parameters to suppress GUI), run report to print document to virtual bullzip printer, catch output file. Thats it. Straight as a rail.

I have two environments: Windows Server 2008 and Windows 7 (different versions of Nav, but this is changing nothing). On Windows 7 it just do nothing (but works if user is admin). On server I can see error in Event Log (translated to English)

Faulting application gui.exe, version 9.8.0.1599, time stamp 0x517126dc, faulting module USER32.dll, version 6.0.6002.18541, time stamp 0x4ec3e39f, exception code 0xc0000142, fault offset 0x0006f52f, the process ID 0x3bc, application start time 0x01ce562238369fa9.

Gui.exe is a part of bullzip.

If I run the same code from Nav Classic Client, or from the same NAS launched in command line, or under local administrator account, or if i put the NAS user in local admin group - it works just fine.

To solve this problem i need to find out one of two and how to fix it:

  1. What is the difference between local admin and regular user that could cause application to crash in non-interactive mode (service) under regular user account.
  2. What is the difference in running NAS as service and as command line that could cause application to crash when run as service.

What I've tried so far: extend non-interactive desktop heap, give user all local privileges that admin have in gpedit. Not works. Don't know direction for further digging.

Any alternative free pdf printers advices are welcome.


This question is still actual. Though I've managed to setup PDF printing with PDFCreator. The tough part was to let several different NAS to print simultaneously. And now the setup have a bottleneck - PDFCreator's printing queue. With bullzip automations it could be avoided.

pdf
dynamics-nav
asked on Stack Overflow May 21, 2013 by Mak Sim • edited Jun 20, 2013 by Mak Sim

2 Answers

0

We've had some cases where third party DLL's have crashed within NAV due to permission restrictions.

The only effective way we could narrow down the files that it was trying to access was through using Process Monitor to try narrow down what was causing permission issues.

We found a folder within System32 to do with the System's Network Profile that some DLLs use. On that note, NAS's and such should be run under a domain account.

answered on Stack Overflow May 21, 2013 by Jake Edwards
0

I think re-installing the application will do that,

Just make sure you are uninstalling each bullzip and ghost script,

Now Ghost script is tricky thing, if you are installing 32 bit over 64 then you are having problem,

refer this download link download appropriate version, install it,

and then install bullzip, after downloading new version from here

this will do..

then also if any problem(if you are using application for automation, you require new com object..) refer Forum, that explains most of application interface problems..

where you need to use public class PdfSettings with namespace bioPdf.

I hope this will help ..

answered on Stack Overflow Jun 20, 2013 by MarmiK

User contributions licensed under CC BY-SA 3.0