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
3550
print in cardview
posted

I use ultraprintpreviewdialog, to print my grid.

When I use Cardview, it doesnt show cardview on the printing, but the normal view.

what to do?

 

  • 469350
    Offline posted

    Printing in CardView was not supported until NetAdvantage v8.2. So in order to maintain backward compatabiilty, we added a property to enable printing in CardView mode. So, assuming you are using v8.2 or higher, you just have to enable CardView printing like so:


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                UltraGridLayout layout = e.Layout;

                layout.AllowCardPrinting = AllowCardPrinting.RootBandOnly;
            }

    Note that printing in CardView mode is only supported for the root band, you cannot print child bands in CardView mode.