cancel
Showing results for 
Search instead for 
Did you mean: 

The Font width gets wide when the report is printed to the printer directly.

former_member559715
Discoverer
0 Kudos

Report A can be printed in 3 ways, via preview window, export as a PDF and print directly to the printer. The problem is the results are different in between them like below

I've checked this question.

https://archive.sap.com/discussions/thread/1972232

The font is MS Mincho 9, true type font, also checked "no printer" in the page settings and using Left alignment in HorAlignment. But the results were same.

Is this because of the graphics engines that is referd to in the question 1972232 or any other reson?

  • Dev PC:Win7,Crystal Reports 13.0.9.1312
  • Visual Studio2013 Target Framework is 4.5.1 Target CPU is AnyCPU
'CODE - report preview
Dim rpt As CrystalDecisions.CrystalReports.Engine.ReportClass = rptA
rpt.SetDataSource(b)

'CODE - export report as PDF file.
Dim rpt As CrystalDecisions.CrystalReports.Engine.ReportClass = rptA
rpt.SetDataSource(b)
rpt.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, "D:\test.pdf")

'CODE - print report directly to the printer.
Dim rpt As CrystalDecisions.CrystalReports.Engine.ReportClass = rptA
rpt.SetDataSource(b)
Dim rasPROpts As New CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions()
rasPROpts.PrinterName = "XXX"
rasPROpts.NumberOfCopies = 1
rpt.ReportClientDocument.PrintOutputController.PrintReport(rasPROpts)

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

You are using SP 9 which is quite old.

Upgrade to SP 24 from here:

https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

Read all of the info on that WIKI also.

Don

Answers (1)

Answers (1)

former_member559715
Discoverer
0 Kudos

Yes, Most of my clients PC are still Win7, will be replaced Win10 within a year. Until then I need to use Win7. I'll check it up with SP24. Thank you.