panaklareddy ch

panaklareddy ch

  • 1.3k
  • 64
  • 16k

Reoprts in Asp.net with Report Viewer

Apr 14 2015 4:59 AM
How to export RDLC report using report viewer in PDF/Word/Excel in portrait mode(A4 Size) in Asp.net?
 
My rdlc Report contains 20 Columns.
 
I have a problem,when i print a report in PDF Format.It display the report data in two pages.
 

Answers (1)

0
Dhirendra Misra

Dhirendra Misra

  • 0
  • 657
  • 20.5k
Dec 27 2013 2:38 AM
Hi Raja,

Your .cs code seems to be fine, can you check on .aspx code if textbox is having property runat="server" at .aspx code with gridview markup?

Thanks
0
Abhay Shanker

Abhay Shanker

  • 208
  • 8.6k
  • 4.4m
Dec 24 2013 9:41 AM
Try as below

foreach(GridViewRow gdv in GridView1.Rows){
   
         //Find the control here.
         TextBox txtServiceFee= (TextBox)gdv.FindControl("txtServiceFee");
   
}