Documentpaginator Wpf Example

In this example, FlowDocument is hosted in a UXFlowDocumentViewer control. Calculate width using column. Saving a WPF Xaml FlowDocument to XPS with working DataBinding I needed to create an invoice system, where the look and feel of the invoice could differ and also of course the invoice data would be different from invoice to invoice. Converting XPS to PDF Programmatically I am working on a simple utility tool which pulls data from database and then generates reports as E-Mail attachments. I'm trying to save the pages of an XPS document to image files. Using WPF, XPS is the best choice for first two requirements. This sample shows how to create a PDF document, add a page, draw some text, and save it to disk. Printing in WPF using Windows driver and Flow document Printing using HTML and the web browser can also be done in WPF but as per my experience, in WPF printing, there is a little delay in printing using the web browser method. This example shows how apply a custom paginator while printing a FixedDocument. LinkLabelコントロールを使って、あたかもURLリンクをクリックした時のように、指定したウェブページを開く方法を紹介します。. 0 DeepZoom image, here is some code to parse an XPS document into individual PNG images which can then be turned into DeepZoom content. 5 pixels high. In this case, the DocumentPaginator will create multiple page elements, despite of whether the FlowDocument is in page mode or scroll mode, for printing purpose with the selected page size. 例えば、this PosPrinter1 sampleのようなOPOSサンプルを見てみるとよいでしょう。これは、おそらくPOS for. Documents) | Microsoft Docs Skip to main content. ActualWidth, instead of column. WPF Scheduling application. PrintableAreaHeight)}; string tempFileName = System. C# (CSharp) System. In this guide you will learn how to print vector-based barcodes inside a Console App or Windows Service by using Neodynamic Barcode Professional for WPF. In the example (shown above) there is a rotating Viewport3D , an Image and a TextBox for you to play with. Many people try to use this feature to create custom report engines. I've said it before and I'll say it again now: It's just incredibly cool that WPF's integration of 3D is so thorough that printing is supported. Here comes to the steps of how to print PDF files in WPF. UPDATE: Checkout Merging XPS Documents for more insight on the XPS API and WPF. I mentioned this class very briefly in the previous tutorial, but only in the context of the printing methods on PrintDialog, PrintVisual(which we focused on last time) and PrintDocument(which we will be focusing on today). We will start off with printing and XPS and then move on to XPSDocumentWriter and then we will have a look on how to work with print options and. Title);} Building the document to print. How to do so is described in the print pdf from wpf article. // Serialize RichTextBox content into a stream in Xaml or XamlPackage format. As an example, the A4 canvas comes out to a size of 210 mm = 793. It keeps text in Glyphs element. GetPaginator(New PaginatorOptions() With {. c# - example - How to Print Preview when using a DocumentPaginator to print? wpf print textbox contents (4) I'm using a class I've derived from DocumentPaginator (see below) to print simple (text only) reports from a WPF application. File: src\Framework\System\Windows\Controls\DocumentViewer. The PrintDocument method of PrintDialog takes a DocumentPaginator object that you can get from IDocumentPaginatorSource. Tags; c# - 複数の写真を一枚に - DocumentPaginatorを使用して印刷するときにプレビューを印刷する方法 WPFには印刷. Design Use a unified platform for visual design, UX prototyping, code generation and application development. All the code is doing exactly what it is suppoed to do, but when I press the print button in my program, the page that comes out of the printer almost seems to be wordwrapped. These reports are XPS documents which I save in a certain directory. You can create a XpfRichEditPrinter class descendant and implement you custom printing logic, as shown in the code snippet below:. Documents DocumentPaginator. The example does three interesting things: convert XPS files into PNG files, display PNG files in a TabControl , and scale images. It works and looks much like the OpenFileDialog which we used in the previous article, with a few subtle differences. Printdialog printdocument pdf Prints a DocumentPaginator object to the PrintQueue that is currently selected. If you want to specify this size from scratch, remember that graphics in WPF uses the device-independent pixel as its basic unit, and one pixel is exactly 1/96th of an inch. settings file by using the designer at the User Scope Level. 1 はできる 複数の PC で確認済み XPS Document Writer など特殊なプリンタの場合は印刷可能 実際のプリンタや PrimoPDF みたいなファイルへ印刷するツールで印刷できない. Programmatically Create and Save a FlowDocument : FlowDocument « Windows Presentation Foundation « VB. Infragistics Ultimate The complete toolkit for building high performing web, mobile and desktop apps. This sample shows how to create a PDF document, add a page, draw some text, and save it to disk. Windorws Form に比べてWPFでの印刷はかなり複雑になったという印象。その分融通は効くようになった感じですが慣れるまでがなかなか大変かも。 まず一番シンプルな単一のページを印刷する方法をまとめてみます。 # 単一ページ. If you declare a Style without an x:Key, it will override the default style for that control. NET Framework 3. This is possible in WPF but requires a bit more work. The DocumentPaginator class, according to MSDN, provides an abstract base class that supports creation of multiple-page elements from a single document. On the other side, FixedDocument provides the same feel as a print out. So I assume the issue is either in Excel SaveAsXPS(not to make a text object that causes this issue), or WPF fixed document, fixed page DocumentPaginator level, not to throw this exception, but. O Scribd é o maior site social de leitura e publicação do mundo. though you can use VisualStudio Resource file. this can be downloaded for free from the speech-bubble at the head of the article. Ich habe eine WPF Anwendung zur Arbeitszeiterfassung geschrieben. Once you have obtained the page images, you can use the WPF or Silverlight printing support to render them into documents with complete flexibility. Now, you have to think of a FlowDocument. The example does three interesting things: convert XPS files into PNG files, display PNG files in a TabControl , and scale images. PrintDocument(idpSource. These are the top rated real world C# (CSharp) examples of System. WPFpedia is a free reference guide web site donated to the Windows Presentation Foundation developer community by Actipro Software LLC, a leading provider of WPF user interface controls and components. PDFViewer for WPF. So unlike the previous approach, this one supports pagination. The example has a margin of half an inch on all sides of the picture. BeginReceive(ReceiveCallback); } private void ReceiveCallback(IAsyncResult AR) { tcp. C# (CSharp) System. RichEditDocumentXpfPrinter (WPF) Create a FixedDocument using the RichEditDocumentXpfPrinter. If the custom DocumentPaginator is required. Windows Presentation Foundation (WPF) offers a wide range of document features that enable the creation of high-fidelity content that is designed to be more easily accessed and read than in previous generations of Windows. like when user click on print then the text in the. Printing in WPF has changed drastically in WPF. Whatever state the controls. net developers working with WPF applications to leverage printing facility. This paper reviews the different XPS Document-related APIs provided by WPF. You can also save to file or apply the image to another surface (technique sometimes used in reflections) In the example (shown above) there is a rotating Viewport3D, an Image and a TextBox for you to play with. Cracking an XPS in WPF. I've got it so that everything prints correctly, But how do I get it to do a print preview before printing? I have a feeling I need to use a DocumentViewer but I can't figure out how. NET Source code for the. Taking advantage on the printing features of WPF which is very powerful and easy to use, you can print barcode documents or labels in scenarios where the classic GDI+ ( System. After we will need to create a custom DocumentPaginator class and override its GetPage(),IsPageCountValid(),PageCount() and PageSize() methods:. Printing Flow Document using WPF PrintDialog PrintDocument method accepts document in form of DocumentPaginator with print description. Call the Print method with the passed System. Is is possible for us to have full runnins sample application so that it will be more helpfull for us? if so please attach the same. I found this yesterday. The example does three interesting things: convert XPS files into PNG files, display PNG files in a TabControl , and scale images. Printdialog printdocument pdf Prints a DocumentPaginator object to the PrintQueue that is currently selected. :-( So my next idea was to derive my own class from FixedDocument containing my paginator and to override the getter of the DocumentPaginator property. Send(data); } A connection is accepted and the async receive callback is started. So unlike the previous approach, this one supports pagination. It looks like this was easy using the older. I mentioned this class very briefly in the previous tutorial, but only in the context of the printing methods on PrintDialog, PrintVisual(which we focused on last time) and PrintDocument(which we will be focusing on today). GetResourceStream method. Pages(0) ' Rasterize/convert the page into PNG image. It includes support for Unicode in PDF files. Output to PDF in WPF (for free!) Here's some sample code that writes a DocumentPaginator called dp to an in-memory XPS and then passes that to the PDFSharp. This entry is part 11 of a 12-part series on WPF 3D. Exception in PrintDialog when converting DEVMODE to PrintTicket. NETによく似ています。 This blog. タグ service, printing, windows, c#. WPFpedia is a free reference guide web site donated to the Windows Presentation Foundation developer community by Actipro Software LLC, a leading provider of WPF user interface controls and components. If you create an image control in Wpf and set its height & width to one of the larger sizes, Wpf will stretch the first (16×16) image to fill the space. Show (listBoxColumnHeaders. DocumentPaginator Class (System. Gets the paginator for the that provides page-oriented services such as getting a particular page and repaginating in response to changes. Unlike Silverlight applications, the selected page size in the Print dialog window is not used in WPF application. Note that it only seems to work with XPS (XMP Paper Specification) files and not OXPS (Open XMP Paper Specification) files. (Part 3) Introduction. just load the file parse it and use bind. La cosa interessante è l’uso delle ultime tecnologie: WPF, LINQ, ecc, ma ancora più interessante è che il codice è pubblicato su codeplex (un super starter kit per comprendere al meglio Windows Presentation Foundation). This sample shows how to create a PDF document, add a page, draw some text, and save it to disk. We have the problem, that we try to print a User Control to PDF. NET Framework 4 in Properties. However, you can specify a custom paginator in FlowDocument regardless of the viewer. As an example, we'll examine the code we used for the printing demo in the last post, and in the process add a feature to it that illustrates some of the properties of context menus. com - a 14 day course covering many pages of content. For example if you need to print invoices you are going to need logic that handles printing multiple pages. The DocumentPaginator is retrieved by the control, but it never requests a page from the paginator. DocumentPaginator rsm. Printing a document with multiple pages. Ok, WPF will do fine. This tutorial serves to be a quick guide for using Tasks in C#. Unfortunately the UI components are not designed to work properly in print/print preview scenarios. Um RichTextBox é uma opção melhor quando é necessário que o usuário edite texto formatado, imagens, tabelas ou outros conteúdos avançados. Simple Printing. Skip to content. It keeps text in Glyphs element. This application is used to generate a report pdf by printing document to local software printer that generates PDFs. WPF Printing Part 2 – The Fixed Document. Example Description. UpdateFields = True}) ' To get high-quality image, lets set 300 dpi. It's my first topic here. We are using the Visual Studio and C# for the development of our WPF application. Fifth answer: DocumentViewer is regular WPF control, thus in order to customize it, you should override it's default template By default the controls looks But if you'll remove line from the control template, you'll get rid of the search bar. This is the first part of a series of posts about printing in WPF starting from printing a single element and going all the way to advanced topics like background printing and XPS. HelloWorld Creates PDF and. For each control, there is a default template associated with it which gives the contr. web; books; video; audio; software; images; Toggle navigation. Generating and downloading an XPS document using ASP. First you need to define two page-masters. I am trying to print a FlowDocument directly to a pdf using Microsoft Print to pdf. Currently I am experiencing a problem with a flowdocument that I am trying to print. PDFViewer for WPF. LinkLabelコントロールを使って、あたかもURLリンクをクリックした時のように、指定したウェブページを開く方法を紹介します。. 2 so it must also be red in between. For example, you can create documents that contain several grids, charts, and other types of content. Introduction. Step 1: First you need to create a new project by choosing "WPF Application". Now, you have to think of a FlowDocument. SaveAsXaml(paginator)End Using Answer: C. It is one of my first apps using MVVM Pattern, so I am not sure I did right. 7 pixels wide and 297 mm = 1122. Please try again later. Contraer todo Código: Todos. Tags; c# - 複数の写真を一枚に - DocumentPaginatorを使用して印刷するときにプレビューを印刷する方法 WPFには印刷. // Make a brush for the curve. So WPF prefers to use the WPF Resource BuildAction. web; books; video; audio; software; images; Toggle navigation. This is possible in WPF but requires a bit more work. These are the top rated real world C# (CSharp) examples of System. The printing frameworks in WPF and Silverlight are different. net 2010] Campo in conflitto con la proprietà. Generating a document to print is not that hard. This is done by adding two "user-controls" to your Wpf project that will house the front-page and the reverse-page:. NET framework in C#. Programmatically Create and Save a FlowDocument : FlowDocument « Windows Presentation Foundation « VB. DocumentPaginator Class (System. It discusses different methods to create tasks and handle their execution. NET web application using WPF and sending the resulting document to the client browser. Let’s take a very simple example of an Invoice that requires some terms and conditions on the back. Header)] [ExcludeFromPage(PrintAppendixes. Introduction. For example, the code in the NotepadClone. The printing frameworks in WPF and Silverlight are different. So I assume the issue is either in Excel SaveAsXPS(not to make a text object that causes this issue), or WPF fixed document, fixed page DocumentPaginator level, not to throw this exception, but. Application Class Resource Methods. Show (listBoxColumnHeaders. Document property and passing its DocumentPaginator to the PrintDialog. Hardware accelerated 3D graphics APIs (like OpenGL and Direct3D) are all about screens, not paper. Of course, before I do any work or planning or anything, I'll need an icon. So unlike the previous approach, this one supports pagination. The XpfRichEditPrinter class provides two methods: Print, allowing you to print to the default printer; and PrintDialog which invokes the Print dialog. O Scribd é o maior site social de leitura e publicação do mundo. The main class that we will need to do pagination is the DocumentPaginator. Join GitHub today. So the code above will effect all CustomControl elements throughout the entire application (or within the scope). Pada saat pertama kali Anda membuka buku ini dan membaca prakata ini, maka hal pertama yang hendak kami katakan adalah bahwa buku setebal 180 halaman ini adalah buku yang jauh dari sempurna. This was a nice article and helps most of peoples who are looking in to the wpf reporting side. For example, you can create documents that contain several grids, charts, and other types of content. Discussion. 06 KB download clone embed report print text 372. I found this yesterday. RichEditControl allows you to print a document with the default settings without end-user interaction by calling the RichEditControl. CreateFixedDocument method and utilize the PrintDialog class to print this document from the RichEditDocumentServer. Provides 48 controls, all offered under the Xceed Software Inc Community License. This tutorial is intended for who are already experienced desktop app developers using WinForms for example and want a rapid introduction to the ways of WPF. NET Windows Forms APIs, but there's not a whole lot I've been able to find on printing in WPF. This had me stumped for a while now. Render() method. Printing Flow Document using WPF PrintDialog In my last post I have explained how to print visual elements using PrintVisual method of PrintDialog. Generating a document to print is not that hard. Per questo tutorial ho scelto come tipologia Silverlight Deep Zoom. You can rate examples to help us improve the quality of examples. Many people try to use this feature to create custom report engines. It is a standalone component that takes in few required and optional parameters to give encapsulate developers from all heavy lifting in order to deal with printing. This would appear to be simple enough; load the document into an XpsDocument instance, get hold of the DocumentPaginator, then render each page using the RenderTargetBitmap. Saving a Fixed Document in an XPS File Causes a Memory Leak I have created a. Open the Visual Studio tool box. The XpfRichEditPrinter class provides two methods: Print, allowing you to print to the default printer; and PrintDialog which invokes the Print dialog. net c#: Batch pdf metadata SDK software service wpf winforms. Cordova应用程序在safari上正常运行,但在作为应用程序安装时崩溃(Cordova app running fine on safari, but crashing when installed as app),我已经为客户端构建了一个工具,它基本上是一个显示多个项目的工具,并根据设置的参数对它们进行过滤。. PrintDocument class will use the Print method to print the document. Programmatically Create and Save a FlowDocument : FlowDocument « Windows Presentation Foundation « VB. However, you can specify a custom paginator in FlowDocument regardless of the viewer. 16 WPF "pixels", so placing elements at strange locations like this made up coordinate (57. File: src\Framework\System\Windows\Controls\DocumentViewer. Whatever state the controls are in, they will be printed. I would like to generate (and then print or save) big XPS documents (>400 pages) from my WPF application. Slight mod to methods AddTableColumn and CreateTable, applies when datagrid's columns do not have a pre-defined width. Navigate to "Syncfusion WPF Toolbox" tab and drag the PdfViewerControl toolbox item to the Designer window, it automatically adds the required references to the current application. Printing a Page Range isn't as easy as it supposed to be. Flow doc to HTML5. Open the Visual Studio tool box. Using FixedDocument, DocumentViewer and PrintDialog you can easily create your own print and/or print preview for RadGridView for WPF. WPF Print Engine makes is easier for. First you should create a collection of GanttTasks, in the ViewModel and populate it with some sample data. Um RichTextBox é uma opção melhor quando é necessário que o usuário edite texto formatado, imagens, tabelas ou outros conteúdos avançados. To print with WPF only methods I need to inherit from System. The best one to use in an application depends on how developers want to process the document and the application content. I'm trying to save the pages of an XPS document to image files. how 3:00 will also appear on the scheduler. With WPF, it has never been so easy to print your entire application, or build and format pages for printing. Using FlowDocument XAML to print XPS Documents. I have already implemented a custom printing using: public void PrintDocument(DocumentPaginator documentPaginator, string description); Does it possible to use your libary to convert DocumentPaginator documentPaginator to PDF. Is is possible for us to have full runnins sample application so that it will be more helpfull for us? if so please attach the same. Rich על Webcam control with WPF or how to create high framerate player with DirectShow by using InteropBitmap in WPF application pebble על Windows Vista 100% working Keygen ארכיון. GetPage extracted from open source projects. The application is named EnterpriseApplication. This demo - which source code files can be found at the end of this page available for downloading - demonstrates how you can easily create Avery Address Labels featuring USPS Postnet barcode in WPF Applications. Ho creato un paio di classi per costruire le mie cartelle ed un metodo per riempirle di numeri casuali da 01 a 90, anche se…. Step 2: Set the Target Framework to be. However, you can specify a custom paginator in FlowDocument regardless of the viewer. (Part 3) Introduction. Exception in PrintDialog when converting DEVMODE to PrintTicket. If you want to specify this size from scratch, remember that graphics in WPF uses the device-independent pixel as its basic unit, and one pixel is exactly 1/96th of an inch. It works and looks much like the OpenFileDialog which we used in the previous article, with a few subtle differences. Printing in WPF has changed drastically in WPF. UpdateFields = True}) ' To get high-quality image, lets set 300 dpi. Abstract This paper provides information about reading and printing XML Paper Specification (XPS) Documents by using the managed APIs of the Windows. This banner text can have markup. Show (listBoxColumnHeaders. Glad to join the community ! I'm trying to render a WPF document from AX2012 R3. When the tcp connection receives data, it calls the receive callback. Here's my Paginator Class:. By default, each FixedDocument has DocumentPaginator property that contain DocumentPaginator object for the fixed document. Un articolo in risposta ad un problema posto sul forum Microsoft di C#, in questo Thread, ovvero Come stampare le cartelle della tombola in WPF. NOTE: This approach is not supported any more. But this does not work. Thanks, Daniel Shitrit. while Inherit style in WPF it affect parent style. DocumentPaginator property as listed in the following code: ' Call PrintDocument method to send document to printer printDlg. Barcode Professional for WPF provides vector-based barcode generation producing high quality barcodes. Infragistics Ultimate The complete toolkit for building high performing web, mobile and desktop apps. So WPF prefers to use the WPF Resource BuildAction. Design Use a unified platform for visual design, UX prototyping, code generation and application development. c# - example - How to Print Preview when using a DocumentPaginator to print? wpf print textbox contents (4) I'm using a class I've derived from DocumentPaginator (see below) to print simple (text only) reports from a WPF application. Custom controls are used when all the built-in controls provided by Microsoft are not fulfilling your criteria or you don't want to pay for third-party controls. The result I got in previous post was done by cod…. By default, each FixedDocument has DocumentPaginator property that contain DocumentPaginator object for the fixed document. FixedDocumentとFlowDocument WPF 前回、DocumentViewerを試してみましたが、表示したXPSをWPFでも作成できる。 クリレポみたいにはいかないけれど、まゴリゴリ書く気ならそこそこいける?. Paging can be done simply and effectively, as you can see in our PowerGlobalSearch add-on. Wpf Listview Row Template. The XpfRichEditPrinter class provides two methods: Print, allowing you to print to the default printer; and PrintDialog which invokes the Print dialog. Advanced Options with the. Taking advantage on the printing features of WPF which is very powerful and easy to use, you can print barcode documents or labels in scenarios where the classic GDI+ ( System. This paper reviews the different XPS Document-related APIs provided by WPF. The sample code here does no changes to Excel created XPS file, calls only WPF XPSDocument and FixedDocument classes, no explicit calls to XAML parser. csproj (PresentationFramework). DocumentPaginator property as listed in the following code: ' Call PrintDocument method to send document to printer printDlg. The User Control can extend over more than one page. ## Foxit J-Reader ググってみると`Foxit J-Reader`のコマンドで印刷する方法を一番よく目にするが、`Foxit J-Reader`をインストールする必要があるのでできれば、この方法は避けたい。 ## G. 16 WPF “pixels”, so placing elements at strange locations like this made up coordinate (57. Net] Problemi creazione, lettura e scrittura file [risolto][Vb. // Make a brush for the curve. Make it transparent with Paint. Rich על Webcam control with WPF or how to create high framerate player with DirectShow by using InteropBitmap in WPF application pebble על Windows Vista 100% working Keygen ארכיון. This effectively anchors the colors in the brush. Please try again later. Visit the Lulu Marketplace for product details, ratings, and reviews. What is TemplateBinding in WPF - short example. For example, you can create documents that contain several grids, charts, and other types of content. Show (listBoxColumnHeaders. タグ service, printing, windows, c#. In this guide you will learn how to print vector-based barcodes inside a Console App or Windows Service by using Neodynamic Barcode Professional for WPF. I'm using a class I've derived from DocumentPaginator (see below) to print simple (text only) reports from a WPF application. There was no support for margins or headers for example. This article demonstrates how to create a FlowDocument dynamically and print it in WPF. Products PDFRasterizer. UpdateFields = True}) ' To get high-quality image, lets set 300 dpi. Un articolo in risposta ad un problema posto sul forum Microsoft di C#, in questo Thread, ovvero Come stampare le cartelle della tombola in WPF. Unfortunately the UI components are not designed to work properly in print/print preview scenarios. This paper reviews the different XPS Document-related APIs provided by WPF. Reading and Printing XPS Documents May 3, 2006. csproj (PresentationFramework). PrintableAreaHeight)}; string tempFileName = System. Currently I am experiencing a problem with a flowdocument that I am trying to print. wpf-tutorial. Dabei bin ich auf ein Problem gestoßen. But before we look at the solution, let's start with the problem. dsget user=20 cn=3DAdministrator,cn=3DUsers,dc=3Dcontoso,dc=3Dcom = -memberof =20. Whatever state the controls. Ambos RichTextBox e TextBox permitir aos usuários editar texto, no entanto, os dois controles são usados em cenários diferentes. WPF allows you to implement your own DocumentPaginator subclass that can generate pages. · A DocumentPaginator can be obtained from a WPF document. So I assume the issue is either in Excel SaveAsXPS(not to make a text object that causes this issue), or WPF fixed document, fixed page DocumentPaginator level, not to throw this exception, but. WPF to PDF (5). " Visual Studio 2008. Hybrid Analysis develops and licenses analysis tools to fight malware. If you create an image control in Wpf and set its height & width to one of the larger sizes, Wpf will stretch the first (16×16) image to fill the space. This feature is not available right now. This code sample shows how to print PDF documents from a WPF application using C#. DocumentPaginator, "My App"); but for some reason, I'm now. Is is possible for us to have full runnins sample application so that it will be more helpfull for us? if so please attach the same. Print method needs two parameters, DocumentPaginator object and the document name. Fifth answer: DocumentViewer is regular WPF control, thus in order to customize it, you should override it's default template By default the controls looks But if you'll remove line from the control template, you'll get rid of the search bar. In this example, FlowDocument is hosted in a UXFlowDocumentViewer control. Taking advantage on the printing features of WPF which is very powerful and easy to use, you can print barcode documents or labels in scenarios where the classic GDI+ ( System. Previewing Microsoft Office Documents and PDF in WPF using a Preview Handler Host Hi, I had recently to implement a mechanism for showing documents into a WPF application. This effectively anchors the colors in the brush. It keeps text in Glyphs element. Altering PageSize of a FlowDocument. Computers & electronics; Audio & home theatre; Supplementary music equipment; WPF in Action with Visual Studio 2008. For example, you can create documents that contain several grids, charts, and other types of content. Hi, >>However, in my flowdocument I have already have tables, hence the table that is used as header and footer are mixed up. 在WPF中使用依赖注入的方式创建视图. WPF: Printing FlowDocuments in Visual Basic 2008. Wpf Listview Row Template. Since then I've been struggling some more with the XPS API; this time trying to merge two documents to create a single XPS. If you want to specify this size from scratch, remember that graphics in WPF uses the device-independent pixel as its basic unit, and one pixel is exactly 1/96th of an inch. For example, the code in the NotepadClone. The following example shows how to define a GridView for a ListView control that displays employee information. La cosa interessante è l’uso delle ultime tecnologie: WPF, LINQ, ecc, ma ancora più interessante è che il codice è pubblicato su codeplex (un super starter kit per comprendere al meglio Windows Presentation Foundation).