Get an int index of a String from a FlowDocument Programming Software Development by kimbokasteniv …to replicate the indexOf method of String, but for a flowDocument instead. I currently have this partially working solution: […CODE]private int GetIntFromPointer(TextPointer mark, FlowDocument document) { int count=0; TextPointer startPointer = document.ContentStart;… XSL elements from attributes Programming Software Development by RobertGaut Given the following XML: [ICODE]<FlowDocument> <Run FontStyle="Italic" FontWeight="Bold">test</Run> </FlowDocument>[/ICODE] How could I get this result?: [ICODE]<body> <em><strong>test</strong></em> </body>[/ICODE] Thanks in advance! Problem with WPF printing width Programming Software Development by ctrl-alt-del …Currently I am experiencing a problem with a flowdocument that I am trying to print. All the …characters. public void PrintIt() { PrintDialog PD = new PrintDialog(); FlowDocument FDForPrinting = FD; FDForPrinting.PagePadding = new Thickness(50.0); … Re: XSL elements from attributes Programming Software Development by fpmurphy Typo [code] <xsl:template match="FlowControl"> [/code] should be [code] <xsl:template math="FlowDocument"> [/code] Re: Get an int index of a String from a FlowDocument Programming Software Development by abelLazm [URL="http://msdn.microsoft.com/en-us/library/system.windows.documents.textpointer.aspx"]Check this for help[/URL] Re: XSL elements from attributes Programming Software Development by pritaeas [code] <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"> <xsl:output method="xml" indent="yes" omit-… Re: Problem with WPF printing width Programming Software Development by ctrl-alt-del A little further guesstimating has shown that a PagePadding as follows brings out the best result so far: FDForPrinting.PagePadding = new Thickness(100.0, 100.0, 250.0, 100.0); But this still doesn't utilize the full width of the page (by far. Maybe only 3/4). Re: Problem with WPF printing width Programming Software Development by ctrl-alt-del The problem was fixed by doing FDForPrinting.ColumnWidth = PD.PrintableAreaWidth; Good luck for anyone else who has this problem!