Crystal Reports ExportToDisk font size

大城市里の小女人 提交于 2019-12-12 04:23:20

问题


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.



来源:https://stackoverflow.com/questions/4863777/crystal-reports-exporttodisk-font-size

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!