Good afternoon,
I'd like to request your help on something I've been trying to do but haven't succeeded yet.
I need to create a few reports and need to provide them in a website (asp.net), where we also used telerik controls (we have recently upgraded to 2012 Q1)
Not all users will have access to all reports and there will be a menu built according to the user's permissions.
I was thinking ofstoring the report in a sql server (we use microsoft sql server 2008) database, so that the project won't need to be compiled everytime a new report is created.
I suppose i would have to store the project's dll in a varbinary(MAX) field.
My biggest doubt is how i set the report viwer to load the dll i stored in the database.
I've tried this:
string reportName = @"Colaboradores.MapasFerias, Colaboradores, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null";
System.Type reportType = System.Type.GetType(reportName);
IReportDocument report = (IReportDocument)Activator.CreateInstance(reportType);
this.ReportViewer1.Report = report;
I know this is not going to the database, but it was just an experiment.... In this case reportType allways returs null...
I have a separate project where i create my reports and, like i said, i'd like to store them in a database.
I have no idea how to set the report viewer to open a dll... Could you please help me?
Thank you very much!
looking forward to hearing from you,
António
I'd like to request your help on something I've been trying to do but haven't succeeded yet.
I need to create a few reports and need to provide them in a website (asp.net), where we also used telerik controls (we have recently upgraded to 2012 Q1)
Not all users will have access to all reports and there will be a menu built according to the user's permissions.
I was thinking ofstoring the report in a sql server (we use microsoft sql server 2008) database, so that the project won't need to be compiled everytime a new report is created.
I suppose i would have to store the project's dll in a varbinary(MAX) field.
My biggest doubt is how i set the report viwer to load the dll i stored in the database.
I've tried this:
string reportName = @"Colaboradores.MapasFerias, Colaboradores, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null";
System.Type reportType = System.Type.GetType(reportName);
IReportDocument report = (IReportDocument)Activator.CreateInstance(reportType);
this.ReportViewer1.Report = report;
I know this is not going to the database, but it was just an experiment.... In this case reportType allways returs null...
I have a separate project where i create my reports and, like i said, i'd like to store them in a database.
I have no idea how to set the report viewer to open a dll... Could you please help me?
Thank you very much!
looking forward to hearing from you,
António