Report design in the run-time
Hello,
I have a Windows application developed under .Net
with this application, I used to build reports based on business objects as datasource
FastReport.Report rpt = new FastReport.Report();
rpt.Load(AppUtils.GetReportPath() + @"\Complaint.frx");
rpt.RegisterData(dt, dt.TableName);
rpt.SetParameterValue("FromDate", fromDate);
rpt.SetParameterValue("ToDate", toDate);
rpt.SetParameterValue("IsTelShow", chkShowTel.Checked);
if(IsDesignMode)
{
rpt.Design();
}
else {
rpt.Preview = previewControl1;
rpt.Show();
}
Now, I want to move the project to a web application using core 3.1 (I will upgrade to ,Net7 later on)
my question here is how to use the same concept on .Net core 3.1 to register and show the designer like what I did in win app?
Comments
Hello!
The WinForms call to `rpt.Design()` opens a desktop window on the server and does not work in an ASP.NET Core web application. A separate commercial web component, FastReport Online Designer, is designed for editing .frx templates in a browser.
Test application: https://www.dropbox.com/scl/fi/74anjkrb2m3eeustx81xm/FastReport.Core.Skia.MVC.6.0.%20-Online-Designer-Trial-2.zip?rlkey=jigjg2bil32ce7q6b9h8nxlx1&st=hpqtkheg&dl=0