c# - RDLC no header and first row after deploy -


i have developed rdlc report in asp.net mvc works fine in local machine : rdlc report in mylocal machine

after deploy windows server r2 there no header , first row there no header , first row

source code report report

 public actionresult m29_post(int year, int month)     {             //step 3 : create report datasources         reportdatasource dsexclude = new reportdatasource();         dsexclude.name = "dsexclude";         dsexclude.value = dse.tables["excludem29"];          //step 4 : bind datasources report         localreport.datasources.add(dsexclude);          //step 5 : call render method on local report generate report contents in bytes array         string deviceinfo = "<deviceinfo>" +          "  <outputformat>pdf</outputformat>" +          "</deviceinfo>";         warning[] warnings;         string[] streams;         string mimetype = string.empty;         byte[] renderedbytes;         string encoding = string.empty;         string filenameextension = string.empty;         //render report                    renderedbytes = localreport.render("pdf", deviceinfo, out mimetype, out encoding, out filenameextension, out streams, out warnings);           //step 6 : set response header pass filename used while saving report.         response.addheader("content-disposition",          "attachment; filename=m29-" + datetime.now.tostring("yyyymmdd") + ".pdf");          //step 7 : return file content result         return new filecontentresult(renderedbytes, mimetype);     } 


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -