While I don't have a specific code example in mind when writing this, I do wonder if anyone in the community has worked with rich media in relationship to WPF FlowDocuments. Specifically, I would like to be able to reference a video within a FlowDocument, and that video may or may not be short enough to justify directly downloading as a...
I am writing a note-taking application in WPF, using a FlowDocument for each individual note. The app searches and filters notes by tags. I want to print all notes in the current filtered list as separate documents, and I only want to show a single Print Dialog at the beginning of the job.
I found a good print example in this thread, bu...
I want to display several actions in a ContextMenu attached to a Hyperlink in a FlowDocument. Some of these actions depend on the value of the Hyperlink object's NavigateUri property. How can I get a reference to the Hyperlink that the user right-clicked?
Unfortunately, it's not as simple as using the PlacementTarget property. As this (...
I have WPF window with a FlowDocument with several hyperlinks in it:
<FlowDocumentScrollViewer>
<FlowDocument TextAlignment="Left" >
<Paragraph>Some text here
<Hyperlink Click="Hyperlink_Click">open form</Hyperlink>
</Paragraph>
</FlowDocument>
</FlowDocumentScrollViewer>
In the C# code I handle Click e...
Is there a way to get the flow document element object (etc Paragraph, Image,) from the wpf richtextbox selection?
If not, is there a way to do it?
...
I read through the following article: http://stackoverflow.com/questions/1655208/detect-flowdocument-change-and-scroll
I have a FlowDocumentReader, not a FlowDocumentScrollViewer, with its ViewingMode set to Scroll. I still cannot figure out how to automatically scroll my FlowDocumentReader to the bottom when content is added to my Flo...
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 FixedDocument? how?
Convert a FlowDocument to a FixedDocment. How? The solutions found do not...
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" and "data."
The problem, then, is:
When only one section fits on a page (because it ha...
I am trying to show a PrintPreview in ActualSize Mode and I have the following structure in my xaml:
The problem is when I mouse scroll, instead of scrolling to the end of the page as you scroll and then navigate to the next page if any , it directly navigates to the next page and then on the last page, it scrolls to the end as you...
Hello,
I am creating printouts in WPF using flow documents. These printouts are set in separate window where DocumentViewer is placed.
When user clicks print I would like to show a progress bar that informs about current page that is sending to the printer. How can I do this?
...
I have a WPF application on wich the user can paste some data from Word inside a RichTextBox... but if that word data has an image, I need to remove it, how can I acomplish that?
Since the FlowDocument is xml, maybe doing some linq magic could do it, but I don't know how :/
...
Is there a way to make the following code behind expression to evaluate to true given the Xaml below. I'm asking this question because I have to work with a Library that converts FlowDocuments containing Images to HTML. Only the "Source" Attribute of the Image Control is persisted and you can't use the standard approach of using a Bitmap...
I have a FlowDocument inside a FlowDocumentScrollViewer.
The size of the container changes.
So does the size of images in the FlowDocument:
<Paragraph>
<Image Source="/InnovationsforumInfoterminal;component/res/wohnzimmer.jpg"></Image>-->
</Paragraph>
The text-size however always stays the same:
<Paragraph FontFamily="Arial">
...
I have a FlowDocument table where I want to spice up the layout a bit. I'm thinking something like a thin line separating the sub amounts on an invoice from the total or something like the line under the header row typically featured in the standard Word 2007+ table styles.
I was hoping that I could just add an empty TableRow and set the...
I have a FlowDocument with two Sections.
One is named 'Inhalt'.
Trying to replace it with another Section doesn't seem to work:
InfoBoxAuditorium.Inhalt = InfoBoxAuditorium.Resources["DokumentWohnzimmer"] as Section;
What am I doing wrong?
...
How can I make a Paragraph collapsible in a FlowDocument while keeping its text selectable?
...
I'm trying to create a simple table in a WPF FlowDocument that has rotated text in some of the cells. In Microsoft Word you can easily change the text direction of a table cell but I haven't been able to find a way in a WPF FlowDocument.
Any idea on how to rotate the text 90 degrees or change the text direction. I've tried a few things...
I'm rendering a Table in a WPF FlowDocument using code-behind. But, I've been unable to find an example that shows how to make the table use only the space needed based on content. Instead the table takes up all available width, which I don't want, nor do I want to have to specify a exact pixel sizes.
I'm clearly missing something simp...
I have a report defined in a FlowDocument. In that report I have some sections that I want to print in landscape mode.
In order to do that I have written a dirty DocumentPaginator hack that creates a landscape oriented FlowDocument for sections marked as landscape.
public override DocumentPage GetPage(int pageNumber)
{
// ...
I'm attempting to print a number of WPF controls (datagrid, charts etc) that are on screen in my application but which need to be re-arranged and supplemented with other text etc.
Using the WPF FlowDocument or FixedDocument seems the obvious way to compose and print documents but I'm struggling to achieve this.
I've tried creating a Vi...