Report viewer
C#
1
Posts
1
Posters
0
Views
1
Watching
-
I am facing problem with ReportViwer during excel file creation. excel format is not proper, it's height is constant. Is there any property by using which i can set the width of excel sheet. My code is fileSaveDialog.ShowDialog(); if (fileSaveDialog.FileName != string.Empty) { Warning[] warnings; string[] streamids; string mimeType; string encoding; string extension; byte[] bytes = this.rvAuditTrail.LocalReport.Render( type, null, out mimeType, out encoding, out extension, out streamids, out warnings); // this.rvAuditTrail.LocalReport.SetParameters( //ReportParameter FileStream fs = new FileStream(fileSaveDialog.FileName, FileMode.Create); fs.Write(bytes, 0, bytes.Length); fs.Close(); }
Truth Is The Simplest !!!!