Avoiding Printer Maestro Service
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?
===========================================
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?
0
-
You need to have Printer Maestro installed on the computer where the server installation of the driver is located, or in other words, on the computer where the printer is attached.
What parameters do you specify in the LabelFormatDocument.Print call?0 -
Legacy Poster
★ BarTender Hero ★
[quote name='Ian C - Seagull Support' timestamp='1338569172' post='2550']
What parameters do you specify in the LabelFormatDocument.Print call?
[/quote]
I'm calling the one which does't take any arguments.0 -
Legacy Poster
★ BarTender Hero ★
This morning I thought I'd at least have a look at Printer Maestro.
But this is all I get.0 -
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? 0 -
Have you tried calling the overloaded method and setting the waitForCompletionTimeout with an explicit value of zero? 0 -
Legacy Poster
★ BarTender Hero ★
[quote name='Ian C - Seagull Support' timestamp='1338826769' post='2557']
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?0 -
Legacy Poster
★ BarTender Hero ★
[quote name='Ian C - Seagull Support' timestamp='1338825421' post='2556']
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]. SP30 -
As a matter of course, update BarTender v9.30 to the latest service release which can be downloaded from the below link. Your existing PKC can be used to activate it if needed. There is no need to uninstall the current build as the newer one will update the existing installation.
http://www.seagullscientific.com/aspx/fixes_93.aspx0 -
Legacy Poster
★ BarTender Hero ★
[quote name='jroe' timestamp='1338920314' post='2571']
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.0 -
Legacy Poster
★ BarTender Hero ★
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.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
10 Kommentare