I'm trying to print/preview an Infragistics UltraTree (winform) (version 14.2) which has formatted/markup text
The nodes of the tree use Infragistics.Win.FormattedLinkLabel.UltraFormattedTextEditor with TreatValueAs = FormattedLinkLabel.TreatValueAs.FormattedText
On the screen the tree looks nice. However when I use Infragistics.Win.Printing.UltraPrintPreviewDialog, the resulting tree displays each node with all of its markups.
The Node's Text
Is there a way to have the preview display the same way it looks on the screen? That is instead of the above, display "The Node's Text", where this text is printed in 11pt and the text color is navy.
The print version displays: span style='color:Navy; font-size:11pt; font-weight:bold; '> The Node's Text </span
Hello Greg,
I have investigated your issue, and I have asked our engineering staff to examine why editor component is not taken into account when printing the tree further. To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a Development ID of #237272. So I’ve created a case for you CAS-184011-V4S2C8 and will update you for the progress of this issue via the mentioned case. You could reach your case following the link below:
https://es.infragistics.com/my-account/support-activity
In the meantime you can easily workaround this issue. What you need to do is handle InitializeTree event of UltraTreePrintDocument and set the EditorComponent like this:private void UltraTreePrintDocument1_InitializeTree(object sender, InitializeTreeEventArgs e)
{ e.Control.Override.EditorComponent = new UltraFormattedTextEditor();}
Thank you for using Infragistics Components.