活动报告 PDF 生成

发布于 2024-12-11 10:06:33 字数 293 浏览 2 评论 0原文

我继承了一个使用 Active Reports 的项目。我基本上需要创建一个简单的 pdf 文件,其中包含我的 ASP.NET 页面之一上的 DataGrid 中的数据。

我只在 DataDynamics 网站上找到了一个演练,它仅适用于 VS2003 和 VS2005 的用户。

我需要的报告不需要是交互式的。我不需要使用文档和页面事件。我只需要获取 DataTable(绑定到我的网格)中的内容并创建一个可供下载的 pdf 文件。

有没有一种简单的方法可以使用 ActiveReports 创建这个简单的静态报告?谢谢。

I've inherited a project that uses Active Reports. I'm required to basically create a simple pdf that holds data that's in a DataGrid on one of my ASP.NET pages.

I've only found a single walkthrough on the DataDynamics website and it only applies to users of VS2003 and VS2005.

The report I need doesn't need to be interactive. I don't need to use Document and Page events. I just need to take what I have in a DataTable (which is bound to my grid) and create a pdf file, which will be available for download.

Is there a straightforward way to create this simple, static report with ActiveReports? Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

放飞的风筝 2024-12-18 10:06:33

kmarks,

你确实可以很容易地做到这一点,你可以通过将报表的datasource属性设置为DataTable来使用相同的DataTable作为报表的数据源。然后你只需要在报表的Details部分添加一个ActiveReports TextBox控件然后将其 DataField 属性设置为数据表中的列名,以将数据表中的字段绑定到 TextBox 控件。您可以在设计时或在后面的代码中执行此操作

完成此操作后,只需创建一个实例报告,在此实例上调用 Run 方法,然后将报告文档导出为 PDF。

我还建议您访问以下链接,它可以帮助您实现相同的目标。

http://www.datadynamics.com/Help/ActiveReports6/arWLKCustomWebExporting.html

您还可以在此处下载一个示例应用程序,该应用程序使用 Active Reports 表单将 DataGrid 转换为 PDF 报告

ftp://ftp.fpoint.com/ActiveReports/Samples/GridToPdf.zip

问候,

阿布舍克·杜塔

葡萄城

kmarks,

You can indeed do this very easily, you can use the same DataTable as a datasource for report by setting the datasource property of the report to the DataTable.Then you just need to add an ActiveReports TextBox control to the Details section of the report and then set its DataField property to a column name in the datatable to bind a field from the datatable to the TextBox control.You can do this either at design time or in the code behind

After you have done this,just create an instance of the report,call the Run the method on this instance and then export the report document to PDF.

I would also suggest you to go through the following link which can help you achieve the same.

http://www.datadynamics.com/Help/ActiveReports6/arWLKCustomWebExporting.html

You can also download a sample application which converts a DataGrid to PDF report using Active Reports form here

ftp://ftp.fpoint.com/ActiveReports/Samples/GridToPdf.zip

Regards,

Abhishek Dutta

Grapecity

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文