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
Post a Comment