Bartender 10.1 追蹤


When I send to print , sometimes that error occurs.


was unhandled


Message: An
unhandled exception of type 'System.InvalidCastException' occurred in


information: Unable to cast COM object of type 'System.__ComObject' to
interface type 'BarTender.IBtApplication'. This operation failed because the
QueryInterface call on the COM component for the interface with IID
'{75248841-42D0-11D2-B7D3-00104B639F6F}' failed due to the following error: The
RPC server is unavailable. (Exception from HRESULT: 0x800706BA).

3 意見

Domingo Rodriguez
評論操作 永久連結

  1. What build number of BarTender is in use (check this via the "Help > About" dialog in BarTender).
  2. Printer make and model in use (printer driver version in use).
  3. Windows version and service pack in use.
  4. Partial source code for us to examine. Do you know approx. at which line of the code the exception occurs?
  5. Does the problem occur with a certain BarTender document (.btw) in use? If yes, please attach it to this forum topic by using the "More Reply Options..." button.
  6. Once the issue appears, will you get these exception for any following print you make? Do you need to do anything to stop the issue from appearing, such as restart your application, restart the server...?
Sylvia Veal
評論操作 永久連結

Enterprise Automation (60 printers)

10.1.SR4 Build 2961

Several users getting this message again.    From different computers, different labels, and to different printers

Printing from ASP.NET pages calling the batch program which does the printing

==================================Calling Code:

Dim ShellProcess As New Process
ShellProcess.StartInfo.UseShellExecute = False
ShellProcess.StartInfo.CreateNoWindow = True
ShellProcess.StartInfo.FileName = programname
ShellProcess.StartInfo.Arguments = arguments

=================================Batch program

Dim btFormat As LabelFormatDocument = btEngine.Documents.Open(indocument)
btFormat.DatabaseConnections.QueryPrompts("ComputerName").Value = computername
btFormat.PrintSetup.PrinterName = printername
Dim prntresult As Result
Dim btMsgs As New Messages
'Print the document
prntresult = btFormat.Print(indocument, btMsgs)


Document: \\s5004001\Collaboration\Labels\BarTender\Wrapper\Address.btw

BarTender Print msg: prntresult: 2
BarTender cannot use printer '\\s5007010\P500D051' to design, print, or export a template due to a printer setup problem.

A Windows error code was returned: 1722

Error message: The RPC server is unavailable.

Sylvia Veal
評論操作 永久連結

I found the print spooler was not running on the web server.   restarted that and the print server and labels are not printing again.