Questions tagged [xps]

Open XML Paper Specification (XPS) is an open specification for a page description language and a fixed-document format originally developed by Microsoft as XML Paper Specification (XPS) that was later standardized by Ecma International as international standard ECMA-388. It is an XML-based specification, based on a new print path and a color-managed vector-based document format that supports device independence and resolution independence.

415 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
20
votes
3 answers

How to create an XPS document?

I'd like to create an XPS document for storing and printing. What is the easiest way to create an XPS document (for example with a simple grid with some data inside) in my program, and to pass it around?
Sam
  • 28,421
  • 49
  • 167
  • 247
16
votes
7 answers

What's the point of XPS?

When I read books about WPF, I saw the authors mention XPS like it was something important. Windows also includes its XPS viewer, and I've seen that listed as a "feature" of Windows. But why? What's the point? Who the heck uses it? It's my…
Benny Jobigan
  • 5,078
  • 2
  • 31
  • 41
16
votes
4 answers

WPF to XPS to PDF

I have implemented a report in standard WPF controls and have also implemented a DocumentPaginator to take these controls and convert them into a document for printing. I have also implemented some code which uses the document paginator to render…
Alex Hope O'Connor
  • 9,354
  • 22
  • 69
  • 112
15
votes
5 answers

Best ways to convert XPS to PDF (and vice-versa)?

I have XPS documents being generated from XAML User Controls that act as templates. I want to convert the XPS documents into alternative formats, mainly PDF, programmatically with a .NET based API. What is the best way to do this?
markti
  • 2,783
  • 1
  • 23
  • 30
14
votes
4 answers

How to convert a XPS file to an image in high quality (rather than blurry low resolution)?

I'm trying to convert an XPS with WPF. The idea is that these images can be loaded with silverlight 4, for this I am using the following code: // XPS Document XpsDocument xpsDoc = new XpsDocument(xpsFileName,…
Ricardo Pons
  • 249
  • 1
  • 2
  • 8
14
votes
3 answers

Windows: How to tell printer to issue a FormFeed during printing?

i need to tell a printer driver to issue a form feed. i'm printing directly to a printer using the: OpenPrinter StartDocPrinter StartPagePrinter WritePrinter EndPagePrinter EndDocPrinter ClosePrinter set of API calls. A lot of the inspiration…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
12
votes
1 answer

WPF to XPS in landscape orientation

i am trying to to generate a XPS Document from a WPF Control. Printing works so far, but i cannot find a way to create the XPS in landscape mode. My code to create the XPS file, mostly taken from another SO page public FixedDocument…
Felix
  • 123
  • 1
  • 4
11
votes
1 answer

Xps printing from windows service

I'm trying to print XPS documents from a windows service on the .net framework. Since Microsoft does not support printing by using System.Drawing.Printing nor by using System.Printing (WPF), I'm using the native XPSPrint API. This is suggested to me…
Steven
  • 343
  • 2
  • 9
11
votes
6 answers

How to generate and print large XPS documents in WPF?

I would like to generate (and then print or save) big XPS documents (>400 pages) from my WPF application. We have some large amount of in-memory data that needs to be written to XPS. How can this be done without getting an OutOfMemoryException? …
bitbonk
  • 48,890
  • 37
  • 186
  • 278
10
votes
6 answers

WPF DocumentViewer doesn't release the XPS file

I am working on a WPF application that opens and displays XPS documents. When the application closes, the specification is the application should delete the opened XPS document for clean up. However, when opening a certain XPS document, the…
bjutus
10
votes
3 answers

Way to default the name of the generated XPS file?

If a user prints a report, and they happen to be using the Microsoft XPS printer, i would like the default the filename to something meaningful. i would have thought that the XPS printer would take the name of the print job, and use that as the…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
9
votes
2 answers

How can I use Ghostscript to convert XPS to PDF or XPS to DOC?

Which one is the best third party libary to convert XPS to PDF and XPS to DOC.
Dhyanesh
  • 247
  • 1
  • 4
  • 12
9
votes
1 answer

Docx or XPS(or ooxml in general) Relationship transform example

Well I already know that there is a document about this, which states: 12.2.4.26 Relationships Transform Algorithm 13 The relationships transform takes the XML document from the Relationships part and converts it to another 14 XML document. 15 The…
lkn2993
  • 566
  • 7
  • 26
9
votes
8 answers

Dot Matrix printing in C#?

I'm trying to print to Dot Matrix printers (various models) out of C#, currently I'm using Win32 API (you can find alot of examples online) calls to send escape codes directly to the printer out of my C# application. This works great, but... My…
Dale
  • 93
  • 1
  • 1
  • 4
1
2 3
27 28