Bartender 10.1
When I send to print , sometimes that error occurs.
System.InvalidCastException
was unhandled
Message: An
unhandled exception of type 'System.InvalidCastException' occurred in
Unileaf.Label.dll
Additional
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).
-
- What build number of BarTender is in use (check this via the "Help > About" dialog in BarTender).
- Printer make and model in use (printer driver version in use).
- Windows version and service pack in use.
- Partial source code for us to examine. Do you know approx. at which line of the code the exception occurs?
- 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.
- 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...?
0 -
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
Try
ShellProcess.StartInfo.UseShellExecute = False
ShellProcess.StartInfo.CreateNoWindow = True
ShellProcess.StartInfo.FileName = programname
ShellProcess.StartInfo.Arguments = arguments
ShellProcess.Start()=================================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)======================================ERROR:
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.
0 -
I found the print spooler was not running on the web server. restarted that and the print server and labels are not printing again.
0
請登入寫評論。
評論
3 條評論