目前还不可能在ie里实现打印功能。 要显示print按钮。 要引用: CrystalDecisions.CrystalReports.Engine 这里有一些导出到文件的一些代码。 Dim Doc As New ReportDocument() Dim objFile As New DiskFileDestinationOptions() objFile.DiskFileName = "F:\Inetpub\wwwroot\chklist\temp.xls" With Doc.ExportOptions .ExportDestinationType = ExportDestinationType.DiskFile .DestinationOptions = objFile .ExportFormatType = ExportFormatType.ExcelRecord End With Doc.Export() 在asp.net里好像没有导出到pdf文件。 在vb.net里面好像有的。
要显示print按钮。
要引用:
CrystalDecisions.CrystalReports.Engine
这里有一些导出到文件的一些代码。
Dim Doc As New ReportDocument()
Dim objFile As New DiskFileDestinationOptions()
objFile.DiskFileName = "F:\Inetpub\wwwroot\chklist\temp.xls"
With Doc.ExportOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.DestinationOptions = objFile
.ExportFormatType = ExportFormatType.ExcelRecord
End With
Doc.Export()
在asp.net里好像没有导出到pdf文件。
在vb.net里面好像有的。