devexpress - empty row and column while Exporting Several XtraGrid Controls to a Single Excel File -


i have read this article , tested, works problem there 1 wide empty column (column a) , 1 wide empty row (row 1) in every sheet (in excel file). know setting of printingbase class. how can remove first empty column , row ?

i have found answer own question:

var compositelink = new compositelinkbase(); var link1 = new printablecomponentlinkbase(); // margins in sheet1 link1.margins.left = 0; link1.minmargins.left = 0; link1.component = dg1; compositelink.links.add(link1); // export excel :) 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -