从装配到报告文档加载水晶报告

问题描述:

大家好

如何从装配中加载水晶报告到报告文件。

How can I load crystal report to report document from assembly.

我这样做但是错误来了"加载报告失败"

I am trying like this but error come "Load Report Failed"

汇编currentAssembly = Assembly.GetExecutingAssembly(); //加载程序集

Assembly currentAssembly = Assembly.GetExecutingAssembly(); //Load Assembly

string rpt = currentAssembly.GetName()。Name +"。CustustReport.rpt";

string rpt = currentAssembly.GetName().Name + ".CustomReport.rpt";

rptDoc.Load(rpt);

rptDoc.Load(rpt);

请帮帮我

谢谢

Arun Goel

Arun Goel

请参阅以下示例以获取更多帮助:

See these samples for more help:

企业样本(包括托管和非托管ras)

http://wiki.sdn.sap.com/wiki/ display / BOBJ / Business + Objects + SDK + Sample + Applications

Enterprise Samples (including managed and unmanaged ras)
http://wiki.sdn.sap.com/wiki/display/BOBJ/Business+Objects+SDK+Sample+Applications

非企业样品

http://wiki.sdn.sap.com/wiki/display/BOBJ/Crystal+Reports+SDK+Sample+应用程序

导出样本(RAS)

http://wiki.sdn.sap.com/wiki/display/BOBJ/NET+RAS+SDK+Samples#NETRASSDKSamples-Exporting%2FPrinting

Don