REPORTVIEW导出
来源:互联网 发布:人工智能电影国语 编辑:程序博客网 时间:2024/06/07 00:50
Microsoft.Reporting.WinForms.Warning[] Warnings;
string[] strStreamIds;
string strMimeType;
string strEncoding;
string strFileNameExtension;
byte[] bytes = this.reportViewer1.LocalReport.Render("Excel", null, out strMimeType, out strEncoding, out strFileNameExtension, out strStreamIds, out Warnings);
string strFilePath = "";
SaveFileDialog sfd = new SaveFileDialog();
sfd.Filter = "excel97(*.xls)|*.xls";
if (sfd.ShowDialog() != System.Windows.Forms.DialogResult.OK)
{
return;
}
strFilePath = sfd.FileName;
using (System.IO.FileStream fs = new FileStream(strFilePath, FileMode.Create))
{
fs.Write(bytes, 0, bytes.Length);
}
if (MessageBox.Show("报表打印: \r\n 成功导出Excel文件!" + strFilePath + "\r\n 要现在打开文件" + strFilePath + "吗?",
"", MessageBoxButtons.OKCancel) == DialogResult.OK)
{
System.Diagnostics.Process.Start(strFilePath);
}
- REPORTVIEW导出
- ReportView 导出PDF 字体问题
- ReportView
- ReportView导出PDF报PInvokeStackImbalance错误
- RDLC文用reportview显示
- Reportview 动态绑定数据
- reportView控件的使用
- reportview应用教程
- rdlc,reportview,报表实例
- reportview制作报表
- ReportView消息响应函数列表
- ReportView报表控件使用方法
- C# reportview页边距、图像、参数设置
- reportview RDLC 报表备忘(一)
- ReportView 报表内部数据过滤
- 设置reportView打印为横向
- C#的REPORTVIEW通用框架
- C#的REPORTVIEW通用框架
- GCC常用选项
- 我的第一个C++程序报告
- C++调用python脚本函数基本应用指南
- 学习c++的感受
- 我的第一个C++上机报告
- REPORTVIEW导出
- 什么是网站程序
- poj1013
- 我的第一个C++报告
- BASH命令和SHELL脚本总结(8)循环篇
- cocos2d引擎家族中的的html5实现
- Unity3D的优化
- BASH命令和SHELL脚本总结(9)其它篇
- (二)数据契约的特性