如何将dataGrid内的数据导入水晶报表里,请高手指教,最好有代码。
解决方案 »
- WinForm读取EXCEL中的全部表的内容
- 有一个问题,我不知道用什么样的算法写。 希望大神指导
- dataGridView 中 在其它列排序后 dataGridView1.Rows[n].HeaderCell.Value 的值会消失,why?
- C#分页打印,先预览然后打印其中的某一页。在线等着。
- 关于 comboBox 的 SelectedIndex 属性的问题
- 菜鸟问:未将对象引用设置到对象的实例。
- 已知一个 警告窗口 的句柄,想向应该窗口发送一个 回车 键,应该怎么样做呢?
- 求一路径转换正则表达式..
- 两个GridView嵌套着RadioButton,如何取RadioButton的值
- sqlDataAdapter.Fill()发生异常!大家帮帮忙!~~~
- VS自带的安装卸载程序 如何卸载前让其执行一个操作?
- OnMouseOver 与 OnMouseMove 的问题
ReportDocument rptDoc = new ReportDocument();
rptDoc.Load(ReportFile);
rptDoc.SetDataSource(DataSource);
rptDoc.SetDatabaseLogon("", "", ReportFile.Substring(0,ReportFile.Length-3) + "ttx" , "");
crvReport.ReportSource = rptDoc;
crvReport.Show();
ReportFile为创建好的水晶报表文件
rptDoc.Load(GetFullReportFileName(reportFileName));
rptDoc.SetDataSource(dt);
CrystalDecisions.Windows.Forms.CrystalReportViewer crv = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
crv.Height = 0;
crv.Width = 0;
//crv.Parent =this;
crv.Visible = false;
crv.ReportSource = rptDoc;
crv.PrintReport();
能不能把代码发给我!谢谢!
[email protected]