Crystal Reports ExportToDisk font size

2019-08-28 20:56发布

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条回答
时光不老,我们不散
2楼-- · 2019-08-28 21:48

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.

查看更多
登录 后发表回答