Questions tagged [flowdocument]

Microsoft's WPF FlowDocument technology allows to render embedded, dynamically adjusted and re-flowing document content that supports columns, pagination and search.

A flow document is designed to "reflow content" depending on window size, device resolution, and other environment variables. Flow content can be complex, consisting of various elements including text, images, tables. In addition, flow documents have a number of built in features including search, viewing modes that optimize readability, and the ability to change the size and appearance of fonts.

571 questions
0
votes
1 answer

Highlighting a phrase in a FlowDocument

I have a TextPointer tp pointing to the start of a phrase which I'd like to highlight using a TextRange. However this code: TextRange tr = new TextRange(tp, tp.GetPositionAtOffset(phrase.Length)); Debug.WriteLine("phrase:" + phrase + ", len=" +…
user317033
0
votes
1 answer

Bookmarking WPF's FlowDocumentReader

I'm trying to save and restore the position of the document within a FlowDocumentReader to create a bookmark feature. There doesn't appear to be any seeking or search feature build in that is publicly accessible, leaving me with the following…
Matthew Olenik
  • 3,577
  • 1
  • 28
  • 31
0
votes
2 answers

Navigating to a specific fragment in a flow document from code behind

I have a WPF page used as an input form which contains a number of controls on one side, and a flow document reader on the other. I want to set the content of this document reader to a specific part of a flow document which is loaded when the form…
fenfe1
  • 71
  • 1
  • 6
0
votes
1 answer

Dynamic printable content area

I am using WPF Flowdocument to print content in a Table with Header and Footer. However, when the data occupies only couple of rows in the table, footer section still reflects at the last of the page and the whole page gets printed, leaving half of…
Ravi
  • 11
  • 4
0
votes
1 answer

Show Flow Document Without Rules

I want to show a flow document without its defalut rules. Is it possible? Thanks.
Harry
  • 1,686
  • 2
  • 15
  • 21
0
votes
1 answer

How to add some white space at the end of a flow document using LineBreak?

Hi I have a FlowDocument in a WPF app. When printing FlowDocument I need to add some white space at the end of the latest block added (BlockUIContainer) At the moment I am using this code, but no space has been added and no errors. Any idea how to…
GibboK
  • 71,848
  • 143
  • 435
  • 658
0
votes
1 answer

Creating an HTML document out of RichTextBox in WPF

I am having issues creating an html document out of a RichTextBox. I am able to get all of the text out of the RichTextBox. This issue is when I go to get images that I pasted in by using Windows Snipping tool don't show up in the document. Is there…
0
votes
1 answer

Whats wrong with my Attached Property for RichTextBox "AttachFlowDocument"

Hi I try to create an Attached Property so that i'm able to bind my FlowDocument to an RichTextBox Here my Code using System; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; namespace Speiseplandienst.Tools { …
0
votes
1 answer

WPF flowdocument element names are reset?

I have a flowdocument with a named Span" test1" which I want to replace the contents of programmatically TextRange tr = new TextRange(this.test1.ContentStart,this.test1.ContentEnd); Run run = this.test1.Inlines.First() as Run; run.Text =…
Homde
  • 4,246
  • 4
  • 34
  • 50
0
votes
1 answer

FlowDocument with InlineUIContainer (image, datagrid) issues when creating XPS

I'm trying to save a FlowDocument as a XPS. I'm using .Net 4.0. The FlowDocument contains the following elements:
Stephane Ehret
  • 340
  • 2
  • 9
0
votes
1 answer

Dynamic document: WPF Combine bound text in a static inline FlowDocument

I am trying to achieve something like the follwing: This is a WPF Flow Document shown to user. This has been generated by user Richard Richardson at 01/01/01 23:15:00. Blah blah blah (another 466 lines)... End of message. I want this date…
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
0
votes
1 answer

Print multiple copies number in flowdocument

I want to print number of copies from a flow document as the user select number of copies and print this document no of copies he selected how to do that
Badr Hussien
  • 149
  • 1
  • 11
0
votes
1 answer

Watermark image in all pages of FlowDocument printout in WPF

In short: Can anyone help me in printing a FlowDocument which may span to multiple pages with the same watermark image in every page? My current implementation prints the watermark in first page only. How to do some kind of templating in this…
Ananthan Unni
  • 1,304
  • 9
  • 23
0
votes
1 answer

Set page format in WPF FlowDocument for dot matrix printer

I'm having an issue with a report that I'm building with FlowDocuments. I can't set the format for dot-matrix printer's sheets (they are larger than A4). For example, when I print the report (It has more than one page, and contains different…
0
votes
1 answer

FlowDocumentReader scroll to top

How to scroll to the top of a FlowDocumentReader? Content is set by binding
paparazzo
  • 44,497
  • 23
  • 105
  • 176