on 05-14-2013 10:09 PM
We are experiencing an issue where we can print a label with a maxicode from within Crystal Reports and the label looks fine. Printing from an application compiled against the Crystal Reports runtime dlls results in the maxicode being compressed by about 5%. This results in the maxicode not being scannable. We are using version 13 for both Crystal Reports and the runtimes.
Hello Patrick
CR Version 13 is not enough information. What service pack are you on? If you do not know, look at the version of the crpe32.dll and quote that:
C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86
- Ludek
Senior Support Engineer AGS Primary Support, Global Support Center Canada
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Patrick
Building reports in version 14 and running hem in version 13 is perfect. But. You have are using SP 1 for CRVS (13.x). I'd like you to update your install to SP5 and see if that helps. Links to SP5 install and runtime files are here:
http://scn.sap.com/docs/DOC-7824
- Ludek
Ludek,
I updated to SP5 (13.0.5.891) and I'm still seeing the same results. Our issue seems similar to this one http://scn.sap.com/thread/3287614. Our issue only occurs when printing from a .NET application by creating a CrystalDecisions.CrystalReports.Engine.ReportDocument and calling the PrintToPrinter() method on the ReportDocument. Printing from Crystal Reports 14 works fine as does printing the report from Visual Studio.
Thanks for the suggestion Don. Can you point me towards resources that would help explain how to do this? It looks like I need to set up a server to host the reports? Does this require a version of Crystal beyond the Visual Studio add on?
I have the following code in place but the last line (printOutputController.PrintReport(printReportOptions);) results in an exception with the message 'Error HRESULT E_FAIL has been returned from a call to a COM component. at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.PrintReport(PrintReportOptions options) '
private void PrintCrystalReport(string reportLocation, string xsdLocation, int numberOfCopies, string printerName)
{
var xmlDataSet = new DataSet();
xmlDataSet.ReadXml(xsdLocation);
var reportToPrint = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
var printReportOptions = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions();
var printOutputController = new CrystalDecisions.ReportAppServer.Controllers.PrintOutputController();
ISCDReportClientDocument reportClientDocument;
reportToPrint = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
reportToPrint.Load(reportLocation);
reportToPrint.SetDataSource(xmlDataSet);
reportClientDocument = _reportToPrint.ReportClientDocument;
printReportOptions.PrinterName = printerName;
printOutputController = reportClientDocument.PrintOutputController;
printOutputController.PrintReport(printReportOptions);
}
Hi Patrick,
just curious - how do you create the maxicode barcodes in crystal?
Theo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.