如何将水晶报告嵌入到现有的VS2010应用程序中? [英] How do I imbed crystal reports to an existing VS2010 app?

查看:82
本文介绍了如何将水晶报告嵌入到现有的VS2010应用程序中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继承了Visual Studio(2008)应用程序。我正在用VS2010更新它。它目前使用默认报告工具,但我遇到了一些问题,报告溢出到多个页面。我希望Crystal报告能够做得更好。



我有.cs和.rdlc文件从2008 SQLServer数据库获取数据。



是否有可以共享的教程或代码示例,显示现有应用程序中我将添加适用代码的位置访问数据库?



在向导中,我看到表格并选择我想要的数据,但我看不到生成的代码存储在哪里。



我'我还不清楚我需要添加/更改现有应用程序以替换现有报告。



目前main.cs调用:

reportForm printdocs = new reportForm(p1,p2,p3,p4);

printdocs.ShowDialog();



reportForm.cs然后使用传递的参数来收集数据并打印不同的.rdlc文件:

ReportViewer1.LocalReport.ReportEmbeddedResource =WindowsFormsApplication1.xyz.rdlc



理想情况下,我想将.rdlc报告替换为水晶报告版本测试差异。我该怎么做?



谢谢,



Lorne

I have inherited a Visual Studio (2008) application. I'm updating it with VS2010. It currently uses the default reporting tool but I've run into some issues with reports spilling onto multiple pages. I'm hoping Crystal reports will do a better job of this.

I have .cs and .rdlc files which get data from an 2008 SQLServer database.

Is there a tutorial or code sample you can share that shows where in the existing application I would add the applicable code access the database?

In the wizard I see the tables and select the data I want but I don't see where the generated code is stored.

I'm also unclear on exactly what I need to add/change to the existing application to replace the existing report(s).

Currently main.cs calls:
reportForm printdocs = new reportForm(p1,p2,p3,p4);
printdocs.ShowDialog();

reportForm.cs then uses the passed parameters to collect data and print different .rdlc files:
ReportViewer1.LocalReport.ReportEmbeddedResource = "WindowsFormsApplication1.xyz.rdlc"

Ideally I would like to replace .rdlc report with a crystal reports version to test the differences. How would I do this?

Thanks,

Lorne

推荐答案

VS2008旗舰版我知道Crystal Reports SDK,但VS2010和VS2012没有,首先在这里下载Crystal Reporting SDK



< a href =http://social.msdn.microsoft.com/Forums/en-US/91f71ce2-e591-45a1-8bc2-0d61cd090117/crystal-reports-version-for-vs-2010> http:// social .msdn.microsoft.com /论坛/ en-US / 91f71ce2-e591-45a1-8bc2-0d61cd090117 / crystal-reports-version-for-vs-2010 [ ^ ]



然后回到我身边,我会尽力帮助
VS2008 Ultimate I know came out with the Crystal Reports SDK but VS2010 and VS2012 did not, First go download Crystal Reporting SDK here

http://social.msdn.microsoft.com/Forums/en-US/91f71ce2-e591-45a1-8bc2-0d61cd090117/crystal-reports-version-for-vs-2010[^]

Then come back to me and I'll help where I can


这篇关于如何将水晶报告嵌入到现有的VS2010应用程序中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆