xpsviewer

XPS or XAML viewer to embed in .NET app?

我与影子孤独终老i 提交于 2019-12-12 18:20:17
问题 Is there a viewer object or ActiveX control I can use to embed an XPS document, or an XAML GUI in my .NET application? 回答1: You can use the ElementHost Control to host WPF content on a .Net Windows Form.The ElementHost appears in the Toolbox under the WPF Interoperability section. You can then host a WPF control that has XPS Document Viewer on it and you've solved both problems. 回答2: Maybe this helps. Integrating WPF with Windows Forms 来源: https://stackoverflow.com/questions/425605/xps-or

Custom page size output in XPS from WPF report

荒凉一梦 提交于 2019-12-05 07:26:29
问题 I have a WPF report which draws the report content in a custom page size (we can consider it as a A4, the problem is the same), if I send the output to a printer (physical or virtual like PDFCreator) my custom page size are correctly preserved for each page. But when I output it as XPS format the pages are adapted to Letter page size. How to preserve my custom page size when outputting a WPF report to XPS ? MY FINAL GOAL: Is to have a PDF from WPF, and my approach is to convert a XPS to PDF

Custom page size output in XPS from WPF report

∥☆過路亽.° 提交于 2019-12-03 22:22:58
I have a WPF report which draws the report content in a custom page size (we can consider it as a A4, the problem is the same), if I send the output to a printer (physical or virtual like PDFCreator) my custom page size are correctly preserved for each page. But when I output it as XPS format the pages are adapted to Letter page size. How to preserve my custom page size when outputting a WPF report to XPS ? MY FINAL GOAL: Is to have a PDF from WPF, and my approach is to convert a XPS to PDF using PDFSharper. The conversion works well but the XPS output corrupts my custom page size. Others

Convert WPF (XAML) Control to XPS Document

杀马特。学长 韩版系。学妹 提交于 2019-11-26 21:27:14
Can I take an Existing WPF (XAML) Control, databind it and turn it into an XPS document that can be displayed and printed using the WPF XPS Document Viewer? If so, how? If not, how should I be doing ‘reporting’ in WPF using XPS/PDF/etc? Basically I want to take an existing WPF control, databind it to get useful data into it and then make it printable and saveable for the end user. Ideally the document creation would be done in memory and wouldn’t hit the disk unless the user specifically saved the document. Is this feasible? Actually after messing around with heaps of different samples, all of

Convert WPF (XAML) Control to XPS Document

社会主义新天地 提交于 2019-11-26 07:56:40
问题 Can I take an Existing WPF (XAML) Control, databind it and turn it into an XPS document that can be displayed and printed using the WPF XPS Document Viewer? If so, how? If not, how should I be doing ‘reporting’ in WPF using XPS/PDF/etc? Basically I want to take an existing WPF control, databind it to get useful data into it and then make it printable and saveable for the end user. Ideally the document creation would be done in memory and wouldn’t hit the disk unless the user specifically