我有这样的代码:
if (ExportFormat == ExportFormatType.HTML32 || ExportFormat == ExportFormatType.HTML40)
{
string filename = Path.Combine("C:\exampleFile.htm"));
_myReport.ExportToDisk(ExportFormat, filename);
}
但是,出于某种奇怪的原因,即使我指定了 .htm,文件也总是导出为 .html 而不是 .htm。有谁知道这是什么原因?我在网上查看,但找不到任何关于此的信息。
谢谢!