I’ve got an application that merges documents and prints them using Aspose.Words for .Net 16.2.0.0. This works very fine on my local machine (Windows 10).
But when I deploy the application to a server (Windows Server 2012 R2) there are a couple of issues.
The first issue is that the displayed name in the printer queue on the server is Always “Print Document”. I use the Document.Print(docName, jobName) method and that works fine locally.
See the attached screenshots.
The second problem is that on the server it takes about 10 times longer to print the same documents on the same printer than on my local machine.
Any help or hints would be greatly appreciated
Hello,
Are you sure that you use the same licence (and DLL) localy and on the server ?
I have the same issue because my licence was expired on me second environment.
Have a nice day.
Hi, thanks for your fast reply but I don’t think that this is the case in my solution because I’m using the license file as Embedded Resource
Hi Michel,
- Your input Word document you’re getting these problems with
- Please create a standalone console application (source code without compilation errors) that helps us reproduce your problem on our end and attach it here for testing.
Hi Awais,
Thank you for your reply.
I’ve created a small console application and that works fine with the naming of the output in the spool queue. Strange, this needs more investigation because my original application still has the problem (only on the server, not on the local machine).
I think it has something to do with the fact that my Original application is running as a service and not as console application.
The speed issue is solved by using XPSprint.
Regards,
Michel van Vuren
Hi all,
I’ve found the cause of this issue:
Because on the server the service is running under a service-account, the name is not displayed to me when I’m logged on under my own account.
This is a policy issue. I’m not able to see the name because I’m not the job-owner.
Regards,
Michel van Vuren
Hi Michel,