-
C# 水晶报表CrystalReport导出各类型文件的例子
C# 水晶报表导出各类型文件的例子,将水晶报表数据导出为Word文件、Excel文件、HTML文件、PDF文件,并获取水晶报表的数据库连接项,设置CrystalReport水晶报表的数据库登录选项等。相关的代码片段:
private void button7_Click(object sender, EventArgs e)
{//将水晶报表数据导出为HTML文件
var MyFileName = "MyHTMLFile.htm";
var MyExportOptions = new ExportOptions();
var MyHtml32FormatOptions = new HTMLFormatOptions();
MyExportOptions.ExportFormatType = ExportFormatType.HTML32;
MyHtml32FormatOptions.HTMLBaseFolderName = "Html32Folder";
MyHtml32FormatOptions.HTMLFileName = MyFileName;
MyHtml32FormatOptions.HTMLEnableSeparatedPages = false;
MyHtml32FormatOptions.HTMLHasPageNavigator = false;
MyExportOptions.FormatOptions = MyHtml32FormatOptions;
this.CrystalReport11.Export(MyExportOptions);
MessageBox.Show("成功导出文件:" + MyFileName, "信息提示", MessageBoxButtons.OK);
}
private void button8_Click(object sender, EventArgs e)
{//将水晶报表数据导出为PDF文件
var MyFileName = "MyPDFFile.pdf";
var MyExportOptions = new ExportOptions
- 2022-04-11 03:03:59下载
- 积分:1
-
MyUsbHidTestApp
说明: VC++ USB 通用代码,包括通过VID,PID查找 USB设备,以及连接,通讯。(VC++ USB general code)
- 2019-04-18 16:31:33下载
- 积分:1
-
获取电脑机器码源码示例
根据本机CPU,主板,MAC地址,生成机器码,C#源码,
- 2022-01-31 17:59:31下载
- 积分:1
-
示波器V5
说明: 基于正点原子MINI板的数字示波器设计,可实现信号的幅值、频率显示,以及水平时基、垂直灵敏度的调节(The design of digital oscilloscope based on punctual atomic mini board can display the amplitude and frequency of signal, adjust the horizontal time base and vertical sensitivity)
- 2020-07-18 09:33:37下载
- 积分:1
-
LED
基于STM32F091的LED操作程序,使用Keil MKD V5开发,作为学习验证使用(LED operating program based on STM32F091 is developed using Keil MKD V5 as learning verification.)
- 2018-12-18 17:03:12下载
- 积分:1
-
window
matlab hann hamming window FFT DFT DTFT
- 2013-11-21 21:52:01下载
- 积分:1
-
WinCE
2440上Wince平台开发的点菜终端程序。通过运行的程序实现点菜,并且通过串口将点菜数据传输出去(failed to translate)
- 2009-06-06 15:16:19下载
- 积分:1
-
DAM
DAM继电器调试尝试软件,非常实用,请下载(DAM relay debug trial software, very practical, please download)
- 2020-12-24 11:29:06下载
- 积分:1
-
newestPDDStiaozhi
DSP+AVR+DDS调制超声气体检测系统程序文件(DSP+AVR+DDS modulated ultrasonic gas detection system program files)
- 2013-08-10 11:11:00下载
- 积分:1
-
Car-plate-localization
在Visual C++环境下编写的车牌定位的程序,依次单击按钮“转”、“1”、“2”、“3”、“4”和“5”,就可以实现精确的车牌定位。(License plate positioning program written in Visual C++ environment, click the button to "turn", "1", "2", "3", "4" and "5" can achieve accurate license plate location.)
- 2012-11-18 17:16:18下载
- 积分:1