Intemittent Report Printing Issues

Stimulsoft Reports.WPF discussion
Post Reply
dongq
Posts: 5
Joined: Thu May 19, 2016 11:24 pm

Intemittent Report Printing Issues

Post by dongq »

Hello,
Currently, one of our customers is experiencing some random printing issues from various printers. Here are some information

System Environment
Microsoft Windows Server 2012 R2 Standard, 6.3.9600 N/A Build 9600
.Net Framework installed: 4.0.30319 ??
Localization: English
Development Target: .Net Framework: 4.5
Our product integrates the below Stimulsoft DLls for reporting and printing.
Stimulsoft.Base.dll 2016.1.16.0
Stimulsoft.Report.dll 2016.1.16.0
Stimulsoft.Report.Wpf.dll 2016.1.16.0

Problem Description
In general, the customer triggers print jobs in our service via a dedicated printer server, which manages various network printers. Unfortunately, we can't re-produce the issues in our dev environment.

1. Ricoh printer – Error is “Win Popup Error: PrintTicket provider failed to bind to printer. Win32 error: -2147467238”
This error happens randomly, but normally printing reports after a few days. When it failed, if we manually send print job from a notepad to the printer, it seems to resolve the issue; and the user can trigger printing again in our system. In other words, it seems that sending a notepad print job to the Ricoh printer clears the printing queue. This is the most concerned issue from customer point of view.

2. Zebra GK420d printer – Error is “Win Popup Error: Com Surrogate has stopped working”.
This happens every time that a report is run to the any Zebra GK420d printer. It seems that when this error occurs, the page size in the printer propertied gets changed to A4. (The Zebra GK420d printer can only print a max page size of “Width: 10 Hight: 20”).
Note: No print job received by print server (No event in the win application logs.)

Win Error popup: Com Surrogate has stopped working ( Server)
Problem Event Name: APPCRASH
Application Name: DllHost.exe
Application Version: 6.3.9600.17415
Application Timestamp: 54504134
Fault Module Name: ntdll.dll
Fault Module Version: 6.3.9600.18438
Fault Module Timestamp: 57ae642e
Exception Code: c0000005
Exception Offset: 000000000003572a
OS Version: 6.3.9600.2.0.0.272.7
Locale ID: 5129
Additional Information 1: 8391
Additional Information 2: 8391abcc5f88acad8e6590923e7ef1f0
Additional Information 3: 88c4
Additional Information 4: 88c440d01b51b9e8dcba97694514408f
Read our privacy statement online: http://go.microsoft.com/fwlink/?linkid=280262
If the online privacy statement is not available, please read our privacy statement offline: C:\Windows\system32\en-US\erofflps.txt

Sample Implementation
It uses observable pattern in our implementation; and the code for printing is pretty straightforward.

{
return source
// prepare report
.ToStiReport(context, definition, renderStiReport)
// print report
.Select(r => { r.PrintWithWpf(showPrintDialog: false, copies: 1, printerName: printer); return Unit.Default; });
}


Questions
In Stimulsoft APIs, is there a way to monitor the status of print job; and can recover the issue 1 somehow?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Re: Intemittent Report Printing Issues

Post by Edward »

Hi Dong,

Thank you for that additional info you have emailed to us, we will answer you by email.

Thank you,
Edward
3146866
Post Reply