Infragistics UltraTree print/preview 的节点具有 formatted/markup 文本

Infragistics UltraTree print/preview with nodes that have formatted/markup text

我正在尝试 print/preview 具有 formatted/markup 文本

的 Infragistics UltraTree (winform)(版本 14.2)

树的节点使用Infragistics.Win.FormattedLinkLabel.UltraFormattedTextEditor 使用 TreatValueAs = FormattedLinkLabel.TreatValueAs.FormattedText

在屏幕上这棵树看起来不错。但是,当我使用 Infragistics.Win.Printing.UltraPrintPreviewDialog 时,生成的树会显示每个节点及其所有标记。

<span style='color:Navy; font-size:11pt; font-weight:bold; '> The Node's Text  </span>

有没有办法让预览显示与在屏幕上看起来一样?那就是代替上面的显示 "The Node's Text",其中此文本以 11pt 打印,文本颜色为海军蓝。

Infragistics 的人说这是他们控制中的一个错误 here。但是,他们提供并解决了。在表单的构造函数中添加此事件处理程序:

    this.ultraTreePrintDocument1.Tree = this.ultraTree1;
    this.ultraTreePrintDocument1.InitializeTree += UltraTreePrintDocument1_InitializeTree;

然后在InitializeTree中加入这段代码:

    private void UltraTreePrintDocument1_InitializeTree(object sender, InitializeTreeEventArgs e)
    {
        e.Control.Override.EditorComponent = new UltraFormattedTextEditor();
    }

正如@wnvko 指出的那样,Infragistics 承认了该错误,该错误将在他们的下一个服务版本中得到纠正。这是我从 Infragistics 收到的声明:

Issue "237272: EditorComponent is not taken into account when printing the tree" has been fixed and verified by our Engineering Team in the following versions . We are in the final stages of creating the service release and expect to publish it according to following schedule:

http://www.infragistics.com/support/service-releases/