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

Indicating Selection in Flowdocument

This one is tricky, I have a number of table cells in a flowdocument, I need to be able to indicate different items by a colored left border. I've solved this currently by putting a 4 pixel transparent border on a tablecell with a name, and then…
Homde
  • 4,246
  • 4
  • 34
  • 50
0
votes
1 answer

WPF Flowdocument ,SQL Server,Datagrid,Print

I could really use your help ,I've been struggling with this for a while. So, I'm working on a WPF application and I want to print an invoice like PDF. The printing is working perfectly, I've created a FlowDocument which has three tables, header,…
K. Anye
  • 158
  • 3
  • 16
0
votes
1 answer

How Can I load image dynamically when the image is visible at FlowDocument?

I want the image which is added to FlowDocument is loaded as a bitmap data when this image is visible by page change or scrolling.(not IsVisible property) because My senario is that images(png, jpg...) are in a zip file. and I will load zip file to…
KONE Seion
  • 51
  • 1
  • 7
0
votes
1 answer

RTB now showing everyhting

I have a wpf richtextbox associated with a flowDocument. Supposing to number lines in the flowdocument from 1..60 The richtextbox is not tall enough to show all numbers. But that's fine since I can scroll through the mouse wheel. The problem is…
Patrick
  • 3,073
  • 2
  • 22
  • 60
0
votes
1 answer

Inserting Image to FlowDocument

I'm working on a wpf application. I want to create a FlowDocument object and print it. As the creation step takes some seconds and freeze the UI, I move my code to new thread. The problem is that I need to set an Image in the FlowDocument and need…
Mohamad MohamadPoor
  • 1,350
  • 2
  • 14
  • 35
0
votes
1 answer

Exception while rendering XpsDocument after conversion from FlowDocument

I'm developing an application that heavily uses the conversion from a FlowDocument to a XpsDocument. From time to time an exception is thrown: NotSupportedException: "The URI prefix is not recognized." My scenario is very complex and I condensed it…
Headi
  • 1
  • 3
0
votes
1 answer

Force render Viewbox in order to draw it on page

I'm using a FlowDocument to create a report. Now, I created a paginator in order to be able to repeat the header on every page, however, it does not get rendered on each page. I suspect the problem is that the Viewbox is not rendered/created untill…
Manu Andrei
  • 62
  • 1
  • 15
0
votes
0 answers

FlowDocument page load based on the next page button click

I am loading a huge document more than 25MB into the FlowDocument. And everything is fine, but it's taking more cpu or long time during initialization to load the entire data into FlowDocument. Instead of that is there a way to load the page…
realn
  • 1,732
  • 3
  • 12
  • 20
0
votes
0 answers

Is there a FlowDocument text processor control?

I need to make a sort of text processor. It must have these features: All the WordPad features + paragraph styles like MS Word + text columns + Zoom. Insertion of tables, images, and controls like buttons, checkboxes. Text search and replacement,…
AeroSun
  • 2,401
  • 2
  • 23
  • 46
0
votes
2 answers

Any way to search two FlowDocuments at the same time?

I have two FlowDocuments side by side in two different stack panels. I need a way to search both the documents at the same time for a particular text. As in if I type "car" in the text box both flow document reader should and search for and scroll…
jailorboy
  • 33
  • 5
0
votes
1 answer

WPF Flow Document: adjust cells height when added in code behind

I have a FlowDocument with a Table inside. When I create the table directly in XAML and when some cell content is divided into two lines, all cells are automatically fit and the entire row is of equal height.
Wojtek P
  • 3
  • 4
0
votes
1 answer

Flow Document, Dataset, or data grid view

I have looked everywhere and I can't seem to find how to make a simple table in C# winforms. Some say a Data set, a Data grid view, or a flow document. I want to just simply transfer values (scores, in my case.) to an XML doc and display the values…
Noah
  • 103
  • 5
0
votes
0 answers

XamlParserEception (Root element is missing) on XamlReader.Load() for FlowDocument with LiveChart

I have a problem with LiveCharts and XamlReader (serialization). MyUserControlWithLiveChart (XAML):
Binakot
  • 298
  • 5
  • 15
0
votes
1 answer

textrange losing textpointer reference?

I've been using some code I found here, to try and change the case of text in a flow document. It changes the text properly however all the formatting is lost (bold, italics, etc) and when I save the document to a XML file all the text ends up in…
0
votes
1 answer

trouble displaying flowdocument

I'm having some problems displaying the contents of a flowdocument in a flowdocumentscrollviewer. I create a generic list that holds a class which contains an int, string and a flowdocument. In a WPF listbox, I am trying to display the flowdocument…