问题描述
您好,
我正在使用Microsoft.Reporting.WinForms库进行导出。要将报表定义加载到LocalReport对象,我想动态创建.rdlc(流)。
我的问题是创建报告的最佳方法是什么动态定义?
var report = new LocalReport();
report.LoadReportDefinition(stream);
我看到微软有
Microsoft.ReportingServices.RdlObjectModel 库,其中包含用于创建报告定义的
报告对象。
我可以使用此报告对象为
生成报告定义(流) LocalReport.LoadReportDefinition(stream)调用?
如果是,可以你给我提供了一些示例代码,它将Report对象转换为LocalReport定义?
  ;
否则,是否存在为LocalReport动态创建.rdlc报告的替代方法和导出?
谢谢,
Anwar
Hello,
I am using Microsoft.Reporting.WinForms library for my exports. To load the report definition in to LocalReport object, i would like to create .rdlc (stream) dynamically.
My question is what is the best way to create the report definition dynamically?
var report = new LocalReport();
report.LoadReportDefinition(stream);
I see that Microsoft has theMicrosoft.ReportingServices.RdlObjectModel library which contains theReport object to create report definitions.
Can I use this Report object to generate the report definition (stream) for theLocalReport.LoadReportDefinition(stream) call?
If so, can you provide me some sample code which converts the Report object to LocalReport definition?
Otherwise, is there any alternate method for dynamically creating .rdlc report for LocalReport and exporting?
Thanks,
Anwar这篇关于动态生成.rdlc报告以供导出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!