Wpf Infragistics xamDataGrid - 将嵌套数据/分组数据转换为 html 格式
场景:
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将 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.