Questions tagged [xpsviewer]
10 questions
50
votes
1 answer
Convert WPF (XAML) Control to XPS Document
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…

Scott
- 4,113
- 6
- 37
- 49
4
votes
2 answers
Another way to display an XPS document using WPF
I would like to ask if there are any other alternatives, aside from DocumentViewer, for displaying an XPS document in a WPF application? A ready-to-use control or class in .NET if possible.
This is because DocumentViewer is a little slow when you…
bjutus
3
votes
4 answers
Default Layout Orientation when printing XPSs using the WPF XPS Viewer
Is there a way to set the Default Layout Orientation when printing XPSs using the WPF XPS Viewer?
My fixed document XPS has its page orientation set to Landscape, the Page Media Size has a width that is longer that its height and it displays…

Scott
- 4,113
- 6
- 37
- 49
2
votes
2 answers
XPS or XAML viewer to embed in .NET app?
Is there a viewer object or ActiveX control I can use to embed an XPS document, or an XAML GUI in my .NET application?

Jason
- 16,739
- 23
- 87
- 137
2
votes
1 answer
Viewing Xps document - Compressed part has inconsistent data length
XpsDocument xpsDoc = new XpsDocument(fileName, FileAccess.Read);
documentViewer.Document = xpsDoc.GetFixedDocumentSequence();
Second line gives next error: Compressed part has inconsistent data length
Why?

CSharpered
- 53
- 5
1
vote
1 answer
Custom page size output in XPS from WPF report
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…

Luciano
- 2,695
- 6
- 38
- 53
0
votes
1 answer
View XPS with XPS Document API?
How can i view an XPS using the (native Windows 7) XPS Document API?
Given an XPS Object Model Package object (IXpsOMPackage), how can i render it to a bitmap or device context?
In the way a metafile can be "played" onto a device context, how can i…

Ian Boyd
- 246,734
- 253
- 869
- 1,219
0
votes
1 answer
Disable MXDW Printing Preferences programmatically
There's a setting on Windows 7 to automatically open XPS files from MXDW:
https://blogs.msdn.microsoft.com/adrianford/2008/08/20/automatically-opening-xps-files-from-mxdw/
Is there a way to change this checkbox setting through code? I'm using…

ryrich
- 2,164
- 16
- 24
0
votes
1 answer
XpsSignatureDefinition.SpotLocation - How does it work?
How does the SpotLocation work? The following code will not display digital signature request(DSR) on the fixed page at the spot location. Should the DSR automatically appear at the spot location on the page, or do I have to define the signature…

psabela
- 324
- 1
- 3
- 16
-1
votes
2 answers
Is there an XPS viewer that can be built into a web page, as iPaper can?
Does anyone know of a an XPS viewer that can be built into a webpage that would access XPS files hosted on our server in the same way that iPaper does for pdfs? (Coming up with an automated conversion process for these XPS files to PDF has proven…
Jake