Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
655
UltraTreePrintDocument : remove border lines in tree print
posted

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

  • 23930
    Offline posted

    Hi,

    Thank you for posting in our forums.

    What you can do in order to achieve this is to handle the InitializeTree event of the UltraPrint document and set the BorderStyle of the printed control to None:

            private void ultraTreePrintDocument1_InitializeTree(object sender, Infragistics.Win.UltraWinTree.Printing.InitializeTreeEventArgs e)

            {

                e.Control.BorderStyle = Infragistics.Win.UIElementBorderStyle.None;

            }

    This way the tree will be printed without borders. Also note that this change will not affect the actual UltraTree on your form. It will keep it border style.

    I am looking forward to hearing from you.