Questions tagged [documentpage]

8 questions
4
votes
2 answers

WPF DocumentPaginator and DocumentPage unexpected cropping

I'm trying to print a WPF canvas over multiple pages. I'm perfectly happy with scaling it to fit on the page width, then clipping and translating the canvas for each page; all pretty simple maths. What I don't understand is how I get the dimensions…
Andrew Bullock
  • 36,616
  • 34
  • 155
  • 231
3
votes
2 answers

Does the WPF DocumentPaginator keep all DocumentPages in memory until it finishes a print job?

Strictly theoretical question concerning WPF's DocumentPaginator: When using the WPF DocumentPaginator class to print a multi-page document, does the paginator keep all of the DocumentPages it requests over the history of the print job in memory…
2
votes
2 answers

Is it possible in WPF to get content of each DocumentPage by page number?

I use DocumentPaginator to divide FlowDocument's text into pages. Is it possible to get content of each pages by page number after ComputePageCount()? If not, how can I do it in other way? Code: var flowDocument =…
Jeksonic
  • 123
  • 8
1
vote
5 answers

Creating WPF components in background thread

Im working on a reporting system, a series of DocumentPage are to be created through a DocumentPaginator. These documents include a number of WPF components that are to be instantiated so the paginator includes the correct things when later sent to…
Mizipzor
  • 51,151
  • 22
  • 97
  • 138
1
vote
1 answer

Serialize WPF component using XamlWriter without default constructor

Ive found out that you can serialize a wpf component, in my example a FixedDocument, using the XamlWriter and a MemoryStream: FixedDocument doc = GetDocument(); MemoryStream stream = new MemoryStream(); XamlWriter.Save(doc, stream); And then to get…
Mizipzor
  • 51,151
  • 22
  • 97
  • 138
0
votes
1 answer

WPF DocumentPaginator: Change DocumentPage Size to landscape

I try to print out a WPF Window as a pdf file (Microsoft Print to pdf) with the DocumentPaginator in A4 landscape format (Size(96 * 11, 96 * 8.5)) but always get it in A4 portrait format. (For the DocumentPaginator I use the method as described…
0
votes
1 answer

Can I turn off the interactive piece of Xaml and keep the layout management?

I am working on rendering XPS documents in a WCF service and want it to be as fast as possible. Is it possible to turn off any UI related overhead, since there is no UI interaction necessary in my use case? I want to just utilize the UI layout…
Charlie
  • 846
  • 7
  • 21
0
votes
1 answer

How to get FixedDocument from PageDocuments

I am working with printing in WPF. I implement a class which inherit from DocumentPaginator class public class ReportPaginator : DocumentPaginator { private double pageUpperLimit; private double pageDownLimit; private Model.Report…
Hakan Fıstık
  • 16,800
  • 14
  • 110
  • 131