cancel
Showing results for 
Search instead for 
Did you mean: 

Printing duplex with GraphicLocationFormula

icebollero9
Discoverer
0 Kudos
140

Until now, QR images in a report were generated with a special font.
We have changed the way of generating these images, now we generate jpg files using the ZXING libraries.
We use the conditionformula GraphicLocation to indicate the path of the image file.
With this new technique, duplex printing has stopped working.
When we call the PrintOut method of the CRAXDRT.Report object, regardless of the printer's properties, duplex printing does not work.

Any idea what is happening?

Thank you

View Entire Topic
DonWilliams
Active Contributor
0 Kudos

The Craxdrt.dll is legacy COM SDK and has not been supported since CR 11.5.

Does it work when using Crystal Reports Designer? You can get CR 2020 trial version from here:

https://www.sap.com/products/technology-platform/crystal-reports.html

On the CR for VS .NET site you can get the latest CR for VS .NET installer for VS 2010->2022:

https://help.sap.com/docs/SUPPORT_CONTENT/crystalreports/3354091173.html

On that page is a printer test app I wrote, see if that works.

If it's still an issue then I'll let R&D know and see if they can fix the issue:

Related Documents

Crystal Reports for Visual Studio Licensing

Getting started and moving ahead with Crystal Reports .NET applications

See this Blog for instructions upgrading your existing project to the latest SP

See this blog on how to use CR 2020 Export to XLXS page formats:

How to use the new CR 2020 export to Microsoft Excel(XLXS) in Visual Studio .NET code (new)

how-to-parameters-in-crystal-reports-for-visual-studio-net

Printing Crystal Reports in .NET

SAP Crystal Reports for Visual Studio Installation Guide ( SP 21 and above)

Note: no option to get the legacy COM dll updated now, only option is to upgrade to .NET, Java or RESTful SDK's.

 

icebollero9
Discoverer
0 Kudos
Thank you very much for your reply.
My apologies for not correctly reporting the CrystalReports version used.
Currently, we use SAP CrystalReports 2013 as a designer, and for development, the SAP Crystal Reports Runtime engine for .NET framework (32 bits), version 13.0.16.1954 libraries
 
This is a brief example of the code used to print (direct to printer without preview)
Public WithEvents CRReport As CrystalDecisions.CrystalReports.Engine.ReportDocument
...
With CRReport
...
.ReadRecords()
If .ReportRequestStatus.NumberOfRecordSelected > 0 Then
.PrintToPrinter(1, False, 0, 0)
End If
End With
 
Duplex printing does not work in this situation, after incorporating GraphicLocation formula to inform the image path.
DonWilliams
Active Contributor

First is to upgrade to the latest SP 37: 

https://help.sap.com/docs/SUPPORT_CONTENT/crystalreports/3354091173.html

SAP only supports the latest version, they never patch any version, full builds only.

If you still have issues then let me know and we'll look into it more.

My Printer test app is C# but works the same for VB. There are web sites that can convert C# to VB code.

Also, PrintToPrinter uses the info saved in the RPT file. You could try opening the report in CR Designer, Select Print and choose the same printer you are testing with, save the report and test again. But first update the CR runtime on your DEV PC and then distribute the MSI packages to the users PC. Must use the same version, see my blog above for more info on updating your project.