Hi,
I have problems for removing the border lines in my tree print.Do someone know witch property must be setted for a result without visible borders ?
Thanks
I'm working also with 15.1 .
It's very strange but nothing changes by me with the borders.
I will try again and look further to my code and to your sample.
I'll let you know.
Thank you for the reply.
What version are you using? I tested this code and everything is working properly for me. I am attaching the sample I used to test this with version 15.1. Please run it and let me know if the borders are removed. If they are, please modify the sample so that it has the same behavior as in your case (the borders aren’t removed even though you are handling the InitializeTree event).
I am looking forward to hearing from you.
I Have tried your example in my program but it doesn't work.
The event method is good launched but the borders are not removed.
I see further.
Regards
Here is my program to see if I have done something wrong :
public void PrintPreview(UltraTree tree) { using (var printDoc = new UltraTreePrintDocument()) {
printDoc.InitializeTree += printDoc_InitializeTree;
printDoc.Tree = tree;
using (var previewDialog = new UltraPrintPreviewDialog())
{ previewDialog.Document = printDoc; previewDialog.ShowDialog(); }
} }
private void printDoc_InitializeTree(object sender, Infragistics.Win.UltraWinTree.Printing.InitializeTreeEventArgs e) { e.Control.BorderStyle = Infragistics.Win.UIElementBorderStyle.None; }
Thank you for the update.
Let me know if this suggestion resolves your issue when you are able to test this.
I am looking forward to your reply.
Ok, thank you for the advice.I'll try that and I'll let you know.