xps

Programmatically print to a PDF printer [closed]

梦想与她 提交于 2019-12-20 04:31:36
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I am looking for a free open source .Net based, preferably C# , pdf printer such as CutePDF's Custom PDF Writer with programmatic

Programmatically print to a PDF printer [closed]

老子叫甜甜 提交于 2019-12-20 04:31:13
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I am looking for a free open source .Net based, preferably C# , pdf printer such as CutePDF's Custom PDF Writer with programmatic

WPF: flowdocument to PDF [closed]

断了今生、忘了曾经 提交于 2019-12-18 18:02:20
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . hI, Is there any control that prints flow document content to PDF? EDIT: not a 3rd party control Thank you 回答1: I was able to solve my problem by saving the flowdocument content to .DOCX and converting it to PDF by using Microsoft.Office.Interop.Word using moiw = Microsoft.Office.Interop.Word; public static void

Programmatically print an XPS file to a physical printer

馋奶兔 提交于 2019-12-14 02:22:51
问题 I have a C# WinForms application. A user uploads an .XPS file and specifies some printer settings (number of copies, paper tray, etc). The program needs to programmatically print the document with these settings. That is, there can be no user interaction to print. I can come close with the System.Printing AddJob method. (https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/how-to-programmatically-print-xps-files). However, I can't define specific settings here, like paper source,

Prevent Scrollviewer from Scrolling just before printing?

末鹿安然 提交于 2019-12-13 05:54:29
问题 I'm trying to print my visual into a multipage xps. The first page is working but the others are left blank. Dim xP As Integer = 0 Dim yP As Integer = 0 xP = Math.Ceiling(WorkFlowCanvas.Width / pageWidth) yP = Math.Ceiling(WorkFlowCanvas.Height / pageHeight) Dim collator = writer.CreateVisualsCollator() collator.BeginBatchWrite() For y = 1 To yP For x = 1 To xP Dim o As New Canvas o = New CanvasCreator().GenerateCanvas() Dim sv As New ScrollViewer sv.Height = 1200 sv.Width = 800 sv.Content =

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

How to create an XPS document in a WCF service to store and return?

亡梦爱人 提交于 2019-12-12 04:26:14
问题 I've got a WCF service as middle tier, and on some occasions I need to create a printable document, store it for future reference in the database, and return it to the client. My first choice as file format was XPS, so I'd like to create an XPS document in a WCF service, store it, and return it. Is there an easy way to achieve this, or some other obvious way to solve my problem (storing and returning a printable document in WCF) I've missed? 回答1: Easy? Nothing's easy about XPS. I'm currently

How do I insert bookmarks into a new PDF file using GhostXPS?

江枫思渺然 提交于 2019-12-12 03:24:45
问题 I want to convert XPS to PDF using GhostXPS. Using command line: "S:\GhostXPS\gxpswin32-9.18.exe" @"S:\Temp\PS\XPS\TestXPSWrite.txt" Where the options are in the TestXPSWrite.txt file: -sDEVICE=pdfwrite -sOutputFile="S:\Temp\PS\XPS\TestMerged.pdf" -dNOPAUSE -dBatch "S:\Temp\PS\XPS\Test1.xps" "S:\Temp\PS\XPS\Test2.xps" "S:\Temp\PS\XPS\Test3.xps" "S:\Temp\PS\XPS\Bookmarks.txt" Contents of Bookmarks.txt file: [/Title (Summary) /Page 1 /OUT pdfmark [/Title (TOC) /Page 2 /OUT pdfmark [/Title

Edit XPS content

大城市里の小女人 提交于 2019-12-11 23:45:21
问题 I have got an application that is supposed to send a formatted document to a printer with some barcodes. I've made other applications that work with printers and print directly through the printserver by sending a xps file, so I thought I would try to see if I could make a .xps file, change the text and be done with it, however every article I can find on the net has to do with creating xps files and not changing them. I feel like it should be possible, and it would be nice not to have to

Question Marks in XPS Document

隐身守侯 提交于 2019-12-11 14:42:18
问题 I was playing around with XPS in C# and used this example as a starting point: https://code.msdn.microsoft.com/windowsdesktop/How-to-Edit-XPS-file-in-WPF-724ef6fb I modified the example a bit and created a search and replace application for XPS documents. The output doesn't look very well: Copy and paste the question marks to an editor works well and gives me the correct characters. Now I've found out that when characters are not in the source XPS and new characters are in the target XPS,