Print Command Failing Follow

0
Avatar
Legacy Poster

I have written a small .NET MVC application which prints a specific label and fills a few label fields from a database. The label will print properly when run on IIS from my development machine, but does not function properly when the web page is running from a test server. In addition, the print instance of the open label hangs, and does not return an error code. However, I am able to export the label to a .jpg using nearly identical code. 

 

Is this likely an issue with IIS configuration on the test server? Or is there something I don't know about the format.Print command that I'm not aware of?

 

Any help or hints would be highly appreciated.

 

Thanks,

Ryan

6 comments

0
Avatar
Domingo Rodriguez
Moderator
Comment actions Permalink

Are your compiling your .NET MVC application for 32 bit architecture?

 

On the test server, is BarTender also installed, activated and properly detecting Seagull License Server on the network?

 

You could enable message logging in BarTender (via the "Administer > Log Setup > Text File Log" dialog) and check if any related error message appears which could indicate the source of the problem.

 

Are you currently using the Trial Edition of BarTender, or do you already have a full Enterprise Automation Edition of BarTender?

0
Avatar
Legacy Poster
Comment actions Permalink

Thanks for getting back to me Domingo. BarTender is installed on the test server and I am compiling for 32 bit. BarTender is also set up to detect the license server and working well when I open it from the server desktop. We already have the full Automation version of Bartender. I've tested the program using calls to the printserver sdk as well as the print sdk, and have the same problem. I'll try some text logs and see how that goes. The error catching in the printserver sdk code should send my web app to an error screen on timeout of the task, but this isn't even happening.

 

Thanks,

Ryan

0
Avatar
Legacy Poster
Comment actions Permalink

Small update, this seems to be a printer issue. When I print from bartender directly the desired printer is seen as the default and everything is fine. When I print from a call in c# the bartend.exe instance fails to recognize the installed printer and throws an error to the log, but hangs in the application. Any advice on how to make bartender recognize an installed printer?

 

0
Avatar
Domingo Rodriguez
Moderator
Comment actions Permalink

What printer make and model is this? What printer driver (and version) have you installed for the printer?

How is the printer connected? Is it locally attached to the same PC where your application runs, or is this a shared network printer? Please give further details?

Also, how are you specifying the printer via your web based application? Are you perhaps expecting BarTender to just load the Windows default printer? Do you have the same problem when the printer selection is done directly in the BarTender document via the "File > Print" dialog, making sure that you're not choosing the Windows default printer?
0
Avatar
Legacy Poster
Comment actions Permalink

It was the printer, all fixed and thanks for the help

0
Avatar
Legacy Poster
Comment actions Permalink

Hi,

 

I have the problem..

 

I have written a small .NET windows application which prints a specific label and fills a few label fields from a TextFile database. The label will print properly when run bartender manually, but does not function properly when try to print from my application. It give error,  A sharing violation occurred while accessing file D:\BartenderRD\Demo.txt. Please any one help. I am using trial Version of bartender.

Please sign in to leave a comment.