Avoiding Printer Maestro Service Follow
When I print a file using your "LabelPrint" sample application, the label I'm trying to print does come out of the printer, but LabelPrint gives me this message:
===========================================
Print Failed
Messages:
BarTender successfully sent the print job to the spooler.
Job Name: Label Print
Label Format: MyLabel.btw
Printer: \\MyServer\MyPrinter
Job Status
Printer: \\MyServer\MyPrinter
Job ID: 61
Status: Unknown
Description: Print job status is unknown because the Printer Maestro Service is not installed on the computer the printer is attached to.
===========================================
And the Debug Output window shows this:
LabelPrint.vshost.exe Error: 0 : EventMonitor.GetEvents Socket exception while connecting to MYSERVER. Exception message: No connection could be made because the target machine actively refused it 10.11.12.13:7170
In another environment I'm getting this error:
Error EventMonitor.GetEvents Computer Name = OTHERSRV Exception Message: Failed to connect to an IPC Port: The system cannot find the file specified.
I'm guessing that both of these errors are caused by Printer Maestro not being installed. Is there some way I can call [b]LabelFormatDocument.Print[/b] and have it not try to do anthing with Printer Maestro? Or is there some other way I can fix or avoid these errors?
10 comments

Ian Cummings
ModeratorWhat parameters do you specify in the LabelFormatDocument.Print call?
What parameters do you specify in the LabelFormatDocument.Print call?
[/quote]
I'm calling the one which does't take any arguments.
But this is all I get.
Have you tried calling the overloaded method and setting the waitForCompletionTimeout with an explicit value of zero?
[/quote]
I tried it just now, but still get the [b]EventMonitor.GetEvents Socket exception[/b].
Is passing a waitForCompletionTimeout of zero supposed to bypass attempting to connect to Printer Maestro?
Please confirm the exact edition, version and build of BarTender that you are running. Check this via the "Help>About" menu item. Judging by the screen shot I assume this is on Windows XP? What service pack of XP is installed?
[/quote]
Edition: Automation
Version: 9.3
Build: 2704
OS: Windows XP Professional [x86]. SP3
http://www.seagullscientific.com/aspx/fixes_93.aspx
I tried it just now, but still get the [b]EventMonitor.GetEvents Socket exception[/b].
Is passing a waitForCompletionTimeout of zero supposed to bypass attempting to connect to Printer Maestro?
[/quote]
Is there some setting or property or some way to say, "Hey BarTender, print this without talking to Maestro"?
We don't want our error log to be polluted with these IPC error messages, and we don't want to ask our customer to run Maestro.
I was getting the same error on multiple systems, Windows 7 and Windows Server 2008/2012 with 10.1.3 & 10.1.4, Maestro is installed and working. If you set the timeout to 0, you get an immediate timeout error. The correct value seems to be System.Threading.Timeout.Infinite.
If you do not include the waitForCompletionTimeout parameter, you get the error message, but no exception is raised nor is a message returned in the messages parameter and the print succeeds.
However, System.Threading.Timeout.Infinite causes the print operation to wait for the printer to complete the printing. In my test, the print time went from 0.2 second to 1.9 seconds. Same label and same printer.
Please sign in to leave a comment.