Wpf Infragistics xamDataGrid - 将嵌套数据/分组数据转换为 html 格式

发布于 2024-12-01 10:20:45 字数 293 浏览 5 评论 0原文

场景:

1)创建了 3 个数据表的数据集,添加了字段之间的关系

2)用 xamDataGrid 完成了数据绑定,它在网格上显示嵌套/分组数据。

3) 使用 infragistics inbuild excel 功能将嵌套/分组数据转换为 excel 文件。

4->现在想要将相同的数据导出为 pdf 格式(问题)。为此,我必须创建一个具有嵌套结构的 html 文件,然后使用第三方工具我可以将其转换(html 到 pdf 文件)。问题是我无法从网格中获取数据/分组数据的嵌套结构。 请帮忙...

Scenario :

1) Created a dataset of 3 datatables , added relationship between fields

2) Binding data with xamDataGrid done, it is showing nested / grouped data on the grid.

3) Converted the nested/grouped data to excel file using infragistics inbuild excel functionality.

4-> Now want to export the same data to pdf format(PROBLEM). For that i have to create a html file with nested structure and then using a 3rd party tool i can convert it (html to pdf file). PROBLEM is that i am not able to get the nested structure of the data / grouped data from the grid .
Please help...

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

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

发布评论

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

评论(1

辞别 2024-12-08 10:20:45

您可以将 XamDataGrid 导出到 XPS,然后将该 XPS 转换为 PDF。

以下内容将有助于导出到 XPS:
http://blogs.infragistics.com/wpf /articles/printing-the-xamdatagrid-with-infragistics-reports.aspx

以下内容可能可以用于转换XPS转为 PDF:
http://nixps.com/library.html

注意我还没有测试 NiXPS 库。

You could export the XamDataGrid to XPS and then convert that XPS to PDF.

The following will help with exporting to XPS:
http://blogs.infragistics.com/wpf/articles/printing-the-xamdatagrid-with-infragistics-reports.aspx

The following may be able to be used to convert the XPS to PDF:
http://nixps.com/library.html

Note I haven't tested the NiXPS library.

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