Hi team support
How to bind devexpress report class to report viewer in XAF webUserControl at runtime?
my purpose is, I want to show report in detail view by query string parameter
and I created a reportviewer in web user control in xaf web application project.
I am following this step for create web user control and add to web detail view
https://documentation.devexpress.com/#eXpressAppFramework/CustomDocument114160
it's possible or not if I was created report-class in module project, and I want to call it and show in report viewer in web application web user control.
bellow as my source code in webusercontrol:
C#public partial class WebReportControl : System.Web.UI.UserControl, IComplexControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
void IComplexControl.Setup(IObjectSpace objectSpace, XafApplication application)
{
//how to bind report viewer to devexpress report class in here
//...
string id = Request.QueryString["id"];
//my report class was created in module project
SampleReport rpt = new SampleReport();
//filter illustration
rpt.FilterString = string.Format("ID={0}", id);
rptViewer.
}
void IComplexControl.Refresh()
{
}
}
UPDATED by Dennis (DevExpress Support):
I want to create scenario link of approval page, by user. When user click link approval from email, my application directing to show a detail report in bottom and in toolbar have 2 simple action button approve and reject, I am also try to create In-Place Reports but user must click show report for showing report preview and this is a intent pop up. I just think about I must be create custom control for show report in detail view with have 2 action button in toolbar for approve or reject. or you have alternation solution without create webusercontrol ?