Hi,
We have a legacy system that we've upgraded from VB6 / Crystal Reports 8.5 to .NET / Crystal Reports 14.1.1.1036. We have a report which has historically been printed out of a Zebra 105SL Printer.
In the new system, we can get the report to print directly to the Zebra, and it functions perfectly.
Our problem is with the Crystal Reports Viewer. We can preview the report fine, but when we print from the viewer itself, the actual print job appears momentarily in the Zebra's print queue, but nothing comes out of the printer. Here's the code:
public void ShowReportViewerForZebra(ReportDocument report)
{
var printerSettings = new PrinterSettings();
printerSettings.PrinterName = "ZDesigner 105SL 203DPI";
var pageSettings = new PageSettings();
report.PrintOptions.CopyTo(printerSettings, pageSettings);
var viewer = new ReportsViewer(); // <= WPF window which contains CrystalReportsViewer
viewer.CrystalReportsViewer.ViewerCore.ReportSource = report;
viewer.Show();
}
I've already conceived of a workaround, wherein we use the Crystal Reports Viewer to preview the report, and create a separate print button. My concern is the overall stability of this solution. If we can't print to Zebra from the CrystalReportsViewer now, who knows if in subsequent releases we'll lose the ability to print *anything* to the Zebra Printer.
Here's the research I've done, thus far:
1.) Confirmed we have the latest version of the drivers: https://www.zebra.com/us/en/support-downloads/industrial/105sl.html#mainpartabscontainer=drivers
2.) Reviewed the following threads: http://scn.sap.com/thread/3244122, http://scn.sap.com/thread/3215010, http://scn.sap.com/thread/3607455
3.) Lastly, it appears that Zebra themselves is essentially saying that Crystal Reports *not* is a "close fit" solution for printing to Zebra => https://km.zebra.com/kb/index?page=content&id=SO6545
The legacy system printed to our Zebra fine for 12+ years... but if CR and Zebra no longer work (well) together, then such is life. What was nice about the CR solution is that is allowed us to preview our output.
ALSO: if not Zebra, will you guide us to some alternative solutions for printing labels from a .NET desktop application?
Thanks for your help,
Aleks
EDIT: just fixed Item #2 to specify that Crystal Reports is *not* a close fit for Zebra