Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8451

Re: Crystal Report paging problem

$
0
0

Hello,

 

the sample code in C# is something like so...

 

 protected void Page_Init(object sender, EventArgs e)
 { 
if (!IsPostBack)
 { // do all your reporting stuff here, then add it to session like so 
ReportDocument crystalReportDocument = new ReportDocumment(); 
crystalReportDocument.SetDataSource(DataTableHere); 
//_reportViewer is the crystalviewer which you have on ur aspx form _reportViewer.ReportSource = crystalReportDocument; 
Session["ReportDocument"] = crystalReportDocument; } 
else 
{ 
ReportDocument doc = (ReportDocument)Session["ReportDocument"]; 
_reportViewer.ReportSource = doc; } } 

 

Method 2:

did you call report binding inside Not Page.IsPostBack ? like

        If Not Page.IsPostBack Then
            'call report
        End If

 

hope this helps..


Viewing all articles
Browse latest Browse all 8451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>