![]() ![]() Asking me why I don't write to DevExpress support is not helpful, so please just don't comment at all. Response.BinaryWrite(stream.GetBuffer()) Settings.CallbackRouteValues = new ", disposition, fileName, fileFormat)) GridViewSettings settings = new GridViewSettings() Static GridViewSettings GetGridViewSettings() MemoryStream stream new System.IO.MemoryStream () grdpurordhd.SaveLayoutToStream (stream) stream.Seek ( 0, System.IO.SeekOrigin.Begin) ( (TableView)grdpurordhd.View).BestFitColumns () DocumentPreview preview new DocumentPreview () PrintableControlLink link new PrintableControlLink (grdpurordhd.View as ) link.ExportToXlsx (saveFileDialog. Public static GridViewSettings GridViewSettingsĮxportGridViewSettings = GetGridViewSettings() I have tried following code to achieve bestfit mode in excel export and it is working. Static GridViewSettings exportGridViewSettings Public class LogViewController : Controller My _GripPartial.cshtml: (Html.BeginForm("ExportToPDF", "LogView", finally LogViewController: using System ![]() I'm wondering if there is something wrong with how i set my setting in code or something since I've googled a lot at seems like those options should be handled automatically in ExportToPdf as long as you have rigth setting. But somehow I don't get the current filter, order or group setting. ![]() I have a webpage with gridview from Devexpress and i've implemented export to pdf.
0 Comments
Leave a Reply. |