Questions tagged [fixeddocument]
70 questions
4
votes
2 answers
WPF Checkbox state does not update in FixedPage
I am trying to export a some data based on a FixedPage element used as template in WPF and I seem to have problems updating the value of the checkboxes. The weird part is that I am also using Textblocks and Textboxes in my template, but these have…

Cami
- 61
- 7
3
votes
1 answer
WPF Tables within FixedDocument
I was wondering if it is possible adding a WPF-Table within a FixedDocument/FixedPage. It seems, as if it is not supported by default.
Is there some kind of workaround to achieve this?

Oliver Vogel
- 1,988
- 1
- 20
- 33
3
votes
0 answers
How do I prevent the XPSDocumentWriter from rasterizing my VisualBrush?
I use the following code to create an XPS document from a FixedDocument.
using (XpsDocument doc = new XpsDocument(package,CompressionOption.NotCompressed))
{
XpsDocumentWriter xpsWriter = XpsDocument.CreateXpsDocumentWriter(doc);
…

tillerstarr
- 2,616
- 1
- 21
- 35
2
votes
1 answer
WPF Printing Large Report Causes OutOfMemoryException
I've created a FixedDocument report to be printed monthly. It will average about 350 pages in length with about half the pages being ~200kb jpeg images. The report displays nicely in the DocumentViewer, but I hit problems when attempting to print…

SpeedBird527
- 149
- 2
- 4
- 18
2
votes
0 answers
Disposing of Flowdocument Page after rendering
//Create a User Control with a TextBlock
TextBlock textBlock = new TextBlock();
textBlock.Text = "Helo";
UserControl userCOntrol = new UserControl();
userCOntrol.Content = textBlock;
…

neo
- 425
- 3
- 11
2
votes
1 answer
VisualBrush does "lazy evaluation"?
I create FixedDocument in more iterations (one page per iteration) like this:
PrintDialog pr = new PrintDialog();
FixedDocument doc = new FixedDocument();
foreach(var i in a)
{
// some changes of MaingGrid here
...
//
VisualBrush vb…

karel
- 1,297
- 1
- 10
- 22
2
votes
1 answer
How to show WPF DocumentViewer with Landscape Orientation?
I'm creating a simple (one page of letter size) FixedDocument and showing it on a DocumentViewer for print preview purposes.
It is easy to put the content as landscape just applying a rotate transform.
But cannot find any property or way to show the…

Néstor Sánchez A.
- 3,848
- 10
- 44
- 68
2
votes
2 answers
Show several FixedDocuments in a DocumentViewer, as if they were a single document
In my WPF app, I have several FixedDocument objects, which I want to display together in a DocumentViewer, as if they were a single document.
It's easy to display a single FixedDocument in a document viewer:
myDocumentViewer.Document =…

Ross
- 4,460
- 2
- 32
- 59
2
votes
1 answer
WPF Document Viewer Update Issues
After a lenghtly battle implementing document rotation for fixed documents using the documentViewer in WPF I finally manged to get it working with the code below:
//Increment Rotation
if (Rotation == 270)
Rotation = 0;
…

FA Servers
- 401
- 1
- 4
- 11
2
votes
1 answer
Transform PDF to FixedDocument
My goal is to be able to display PDF documents using DocumentViewer (WPF control). DocumentViewer is able to display only FixedDocumnets. Is there any way to transform PDF to FixedDocument.
Thank you for answers

Rasto
- 17,204
- 47
- 154
- 245
2
votes
0 answers
FixedDocument always print first page
I have a problem when trying to printing multipage of FixedDocument, for example my preview show 3 different page, but when I click print or using Printdialog(fixedDoc.DocumentPaginator,"namefile"), it always prints 3 pages with content of page…

Thai Hoc Ha Nguyen
- 78
- 1
- 10
2
votes
1 answer
WPF DocumentViewer doesn't show the document
I'm using a DocumentViewer to view a FixedDocument and on 2 machines (out of over 500) the document viewer does not show the document.
Edit: ok, it's not a bug in WPF and the DocumentViewer control works perfectly, I'm leaving this question…

Nir
- 29,306
- 10
- 67
- 103
2
votes
1 answer
Saving a FixedDocument with images to XPS file
I've saved a FixedDocument to XPS file for example:
void SaveDocument(FixedDocument document, string filePath)
{
var xps = new XpsDocument(
filePath, FileAccess.Write, CompressionOption.Maximum);
var writer =…

Andrey Potapov
- 29
- 2
- 14
2
votes
1 answer
WPF FlowDocument Page Break/Positioning
Here's the situation.
I'm tasked with auto-generating a rather large document consisting of a number of distinct sections of varying height and constant (full-page) width.
Each section consists of two distinct sub-sections. Think of them as "header"…

Anthony Compton
- 5,271
- 3
- 29
- 38
2
votes
1 answer
WPF 4 FixedDocument multiple pages
What is the best way to print a complex layout spanning multiple pages in WPF? (for example an invoice layout spanning multiple pages because of many invoice items)
I'm guessing one of these methods would do:
Dynamically inserting pages in a…

Tom Deleu
- 1,177
- 1
- 15
- 29