Crystal Reports ExportToDisk font size

2019-08-28 21:04发布

问题:

When using the ExportToDisk method of ReportDocument it shrinks all of the fonts to 0.5pt than they were specified in the report. I'm creating a word document so specified the line of code as such:

myReport.ExportToDisk(CrystalDecisions.[Shared].ExportFormatType.WordForWindows, path)

I've also experimented with creating a RTF instead (using ExportFormatType.RichText) but to no avail. I seem to remember coming across a reason with a registry fix - but I've lost it now.

Must warn you this is a legacy system (.NET 1)

Any ideas?

回答1:

RTF format is a text file whose format is documented. You should easily be able to postprocess it to adjust any font properties. You can download the spec from Microsoft for further info.