Questions tagged [xps-generation]

12 questions
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
3
votes
2 answers

Extract a single page from an XPS document

I need to split an existing XPS Document and create a new XPS Document with only one page of the original one. I tried to copy the document and delete pages from the copied document, but that's very slow. Is there a more efficient way to do this? In…
Javier
  • 150
  • 3
  • 8
3
votes
1 answer

Print MS Access report to .xps file using VBA

I am using MS Access 2003 and have seven different reports I have to distribute each morning, and I currently do that manually by printing each to an XPS file. The default printer for each report has been set to XPS file, and I tried this…
rryanp
  • 1,027
  • 8
  • 26
  • 45
2
votes
1 answer

Does CreateXpsDocumentWriter create an XPS or an OXPS document?

I read that the XPS printer in Windows 8 produces OpenXPS (.oxps) files whereas its counterpart in earlier Windows versions produce XPS (.xps) files. So printing XPS files under Windows 8 implies a compatibility issue. Fair enough. But, what type of…
l33t
  • 18,692
  • 16
  • 103
  • 180
2
votes
1 answer

Issue with NumberFormat in ExportAsFixedFormat

I have a table of data (calculation results) that the user should be able to export to different formats. I use Interop.Excel to prepare a table with the data and use the data and format it using visual formatting (fonts, colors etc.) and…
1
vote
1 answer

Printing from Java - the print jobs hangs forever

I have a server side printing function, called from Tomcat on Windows 2008 server, that prints on the default printer in this case, and it hangs forever. This is the stack trace: at sun.awt.windows.WPrinterJob._startDoc(Native Method) at…
Daniel
  • 27,718
  • 20
  • 89
  • 133
1
vote
1 answer

Appending an XPS document to an existing one

Guys, here's where I am stuck. I have a need to create a single XPS file from a huge bunch of tiny XPS files. The problem is that I keep running out of memory when I try to do this. I present below the code (taken from MSDN), but essentially all it…
Vaibhav
  • 11,310
  • 11
  • 51
  • 70
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

Programmatically convert (save) files (i.e. docx, xlsx, txt) to XPS by sending them to the “Microsoft XPS Document Writer” printer

Using C# 3.5, I’m trying to programmatically create XPS files by sending them to the “Microsoft XPS Document Writer” printer. I’m able to set the print queue, but I’m unable to add a job to the print queue using the PrintQueue.AddJob() because it’s…
0
votes
2 answers

how to get a page from a xps file?

I'm writting an application in c# that take a Xps Document and create another xps documet that contains only one selected page from the original document, I was searching for an API that work with XPS files but I don't find anyone that do this…
Javier
  • 150
  • 3
  • 8
0
votes
1 answer

Generating XPS document from a Windows Application

I want to capture the html content in web browser and print to XPS Document. I am using a Windows application to do it since it is used in IE toolbar. Is there a way to capture the httpwebrequest to read the content of the webpage to to a…
-2
votes
2 answers

Installing XPS Document writer on Azure

So i have a Windows Server 2008 virtual machine on Azure, and I need to install the XPS Document writer. The problem is that the spooler is not started. When I try to start the spooler i get the 1058 error. I tried clearing the printers from the…