migrate report from ver 1.6.43 to ver 2013.1.3
I created a report serveral years ago, code is below. I upgraded to the latest version of fastreports, the report displays the progress bar but not data is displayed.
I opened the .frx file in the designer, ran the report and it populates with data. I saved the report as a .cs file and use the code below to run the report. I need help to get the report to display when compiled for .net 4.0
I opened the .frx file in the designer, ran the report and it populates with data. I saved the report as a .cs file and use the code below to run the report. I need help to get the report to display when compiled for .net 4.0
public partial class CustomerActivity : System.Web.UI.Page
{
bool buildRpt = false;
protected void Page_Load ( object sender, EventArgs e )
{
}
protected void WebReport1_StartReport ( object sender, EventArgs e )
{
if (buildRpt)
{
FastReport.CustActivity myReport = new FastReport.CustActivity();
//myReport.SetParameterValue("FacilityName", ddlFac.SelectedItem.Text);
myReport.SetParameterValue("ReportTitle", ddlFac.SelectedItem.Text + " Members Activity For " + dtStartDate.SelectedDate.ToString("MMM d, yyyy") + " to " + dtEndDate.SelectedDate.ToString("MMM d, yyyy"));
DataSet myD = new MemberFPP().MembersActivityByDateRange(Convert.ToInt32(ddlFac.SelectedValue), dtStartDate.SelectedDate, dtEndDate.SelectedDate);
myD.Tables[0].TableName = "memberFPP";
myReport.RegisterData(myD.Tables["memberFPP"], "vwcustactivity");
WebReport1.Report = myReport;
}
}
protected void btnInsertc_Click ( object sender, EventArgs e )
{
buildRpt = true;
WebReport1.Visible = true;
WebReport1.Refresh();
}
}