c# - The place for the first record is empty in RDLC report -


i have made 2-column report :

name1----------------------------name3 address1-------------------------address3  name2----------------------------name4 address2-------------------------address4 

but started give reports :

      ----------------------------name3        -------------------------address3  name1----------------------------name4 address1-------------------------address4  name2 address2 

here code :

 public actionresult report()         {             localreport lr = new localreport();             string path = path.combine(server.mappath("~/report"), "person.rdlc");             if (system.io.file.exists(path))             {                 lr.reportpath = path;             }             else             {                 return view("index");             }             list<person> cm = new list<person>();              var viewmodel = new personindexdata();              viewmodel.people = db.person             .include(k => k.groups)             .orderby(k => k.name);              cm = viewmodel.people.tolist();                reportdatasource rd = new reportdatasource("dataset1", cm);             lr.datasources.add(rd);             string reporttype = "pdf";             string mimetype = string.empty;             string encoding = string.empty;             string filenameextension = string.empty;                string deviceinfo =              "<deviceinfo>" +             "  <outputformat>pdf</outputformat>" +             "  <pagewidth>8.5in</pagewidth>" +             "  <pageheight>12in</pageheight>" +             "  <margintop>0.5in</margintop>" +             "  <marginleft>0.5in</marginleft>" +             "  <marginright>1in</marginright>" +             "  <marginbottom>0.2in</marginbottom>" +             "</deviceinfo>";              warning[] warnings;             string[] streams;             byte[] renderedbytes;              renderedbytes = lr.render(                 "pdf",                 deviceinfo,                 out mimetype,                 out encoding,                 out filenameextension,                 out streams,                 out warnings);               return file(renderedbytes, mimetype);         } 

namely place first record empty. why think happened , how can rid of it? changed column spacing , margins didn't work. thanks.

you cannot fetch first column value table. that's reason cannot display first column value.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -