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

Search for only user specified text stored as flowdocument in sql table

I am currently saving information from a rich text box as flowdocument to my sql table which has a column defined as nvarchar(MAX). The data is stored as follows:
New Developer
  • 123
  • 1
  • 10
0
votes
1 answer

Multipage FlowDocument in WPF

A beginner in WPF Documents here. I am exploring the possibility to display page by page static content in WPF application. Much like a PowerPoint presentation in which slides can be navigated next and previous. From my initial research I thought…
Arpit Khandelwal
  • 1,743
  • 3
  • 23
  • 34
0
votes
2 answers

Forcing a FlowDocument to Load?

I'm in the process of trying to print out a FlowDocument that is being viewed by the user. I wrote a routine to create a copy of the original document so that changes (from the PrintDialog) don't get reflected into the…
Sonny Boy
  • 7,848
  • 18
  • 76
  • 104
0
votes
2 answers

Remove hidden characters in WPF rich text box

(Since this question has not been getting any answers, I've re-worded it) In my application, I have a dialog that holds a Rich Text Box, the box is filled with a Tweet gathered from Twitter. Using the tweet entities I format the tweet to have…
ecnepsnai
  • 1,882
  • 4
  • 28
  • 56
0
votes
3 answers

Is TextFlow Element Valid in WPF

For some reason I am not able to use the TextFlow element in WPF. Is this element/control even available? I am using VS 2008.
azamsharp
  • 19,710
  • 36
  • 144
  • 222
0
votes
1 answer

WPF Flowdocument "change case" feature

I am implementing a "change case" functionality for my RichTextBox like word has with Shift+F3. All it does is switching between lower->upper->title case, which is very simple once I get access to the string I need. My question is, how to change…
Tomas Grosup
  • 6,396
  • 3
  • 30
  • 44
-1
votes
1 answer

Why text from TextBlock is not displaying?

Why the text from the following TextBlock is not displaying. How can we have it displayed above the FlowDocument?
nam
  • 21,967
  • 37
  • 158
  • 332
-1
votes
1 answer

converting html to FlowDocument

I try to create a wpf core application that uses text imported from a ms Access database. Some of the fields are Access Text fields with text set as RTF text but actually they look like html. like this: 10630981 bla bla bla bla bla   {bla 25-09} I…
R. Warning
  • 77
  • 1
  • 4
-1
votes
1 answer

Is there any meaningful use where the Paragraph.Parent property is not a FlowDocument?

In a FlowDocument / WPF RichtTextBox the Parent property is of type DependencyObject. But I haven't found any meaningful case where Parent isn't a FlowDocument (or null). Is there any? Edit: Why I need to know that? My method gets a Paragraph as…
marsh-wiggle
  • 2,508
  • 3
  • 35
  • 52
-1
votes
1 answer

How to fit the size of a WPF Window to a flow document table

I'd like to display some content of a flow document table in its own WPF Window. The Window should only be as big so that all table content can be displayed, but not any bigger. When I set the window's SizeToContent property to "WidthAndHeight", the…
Peter Huber
  • 3,052
  • 2
  • 30
  • 42
-1
votes
2 answers

WPF to XPS with outline and structure

I am developing a WPF reporting application. My report is constructed as WPF Control (FlowDocument or FixedDocument) and contains tables. I want to save it as XPS preserving its structure (this means that I can copy a table as a table, not plain…
Dmitry B
  • 11
  • 3
-1
votes
1 answer

WPF FlowDocument serialization error when clearing Blocks

I have a custom WPF class subclassing RickTextBox so I can add inline displays for custom data objects. Occasionally, I need to clear everything and rebuild the document from the list of classes. When I do that, though, I get a strange error:…
ryan0270
  • 1,135
  • 11
  • 33
-2
votes
2 answers

WPF MouseLeftButtonDown makes FlowDocument unable to select text

I add a function that adds text to FlowDocument when the mouse clicks. There is no Click event in FlowDocument, so I listen to FlowDocument.MouseLeftButtonDown and MouseLeftButtonUp and check whether the mouse moves between down and up. When I click…
Snowy
  • 59
  • 8
-2
votes
1 answer

Convert XHTML to XAML FlowDocument

Does anybody invent a workable converter program that can convert XHTML file to FlowDocument xml file? I need this because my XHTML document have nested tag and it make my converter xslt thrown exceptions. any ideas? I appericate all replys and…
ariso
  • 1,433
  • 6
  • 21
  • 35
-4
votes
1 answer

How to convert FlowDocument to string?

1) How to convert FlowDocument to string? 2) How to convert my string to FlowDocument? FlowDocument contains text and pictures. The text in the string should be preserved. Text12345 Pictures must be converted. For example, encoded:…
code211218
  • 127
  • 2
  • 6
1 2 3
37
38