简体   繁体   English

WPF 4 FixedDocument多页

[英]WPF 4 FixedDocument multiple pages

What is the best way to print a complex layout spanning multiple pages in WPF? 在WPF中打印跨多个页面的复杂布局的最佳方法是什么? (for example an invoice layout spanning multiple pages because of many invoice items) (例如,由于有许多发票项目,所以发票布局跨越多个页面)

I'm guessing one of these methods would do: 我猜这些方法之一可以:

I typically use dynamic insertion of Pages into the FixedDocument control. 我通常使用动态插入Pages到FixedDocument控件中。 I created a empty view and then dynamically load in UserControls that represent each pages "body" with their respective binding(s). 我创建了一个空视图,然后动态加载表示每个页面“ body”及其各自绑定的UserControls。 The downside is you have to create your own poormans virtualization for dataset reprots (ie show 12 rows per page with a MOD 12 calculation etc) type thing. 缺点是您必须为数据集提示创建自己的差人虚拟化(即,每页显示12行,并使用MOD 12计算等)类型的东西。

Reports are low priority on the WPF teams Radar so this really hasn't got a lot of knowledge base around it at present and the future isn't so bright either. WPF团队对Radar的报告优先级较低,因此,目前关于它的知识并不多,而且未来也不是那么光明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM