Hi,
1/ I tried to use the ReportParameters collection to pass paramaters to my report but I don't understand when the databinding occurs. I'seem to be directly after the report was created.
I saw on forum's samples that you combine report parameters with the Filters collection to filter results. But I already have a function of my Bussiness Layer that can take two date parameters to reduce data.
So I wan't to pass dates to the report and populating it with my function who take the two dates in parameters. How I can do that? At which place I must define the datasource property? Why isn't there a method Databind?
I tried to use the NeedDataSource event but I don't understand when it is fire.
2/ If the is no data to show, how I can replace the report struct by a simple message text ?
Thanks for yours reponses.
Hello:
I'm new using Telerik controls, I find it very useful these controls, in addition to be easy to implement.
I had no problems with the RAD Controls, but when I try the reporting everything worked well:
making the report( I see both Preview and HTML Preview), connect to the database, creating the reportviewer in the aspx page.
But when I try to run the web site, all other pages worked fine, but the report does not work, I get the following message:
The http handler needed by the Report Viewer has not been registered in the application's web.config file. Add <add verb="*" path="Telerik.ReportViewer.axd" type = "Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=1.5.0.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> to the system.web/httpHandlers section of the configuration file.
But Im ussing Netframework 2.0 for the application, so I put the handler in Handler Mapping In the application's config file, but nothing happened.
<system.webServer>
<handlers>
<add name="TelerikReport" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler" resourceType="Unspecified" />
</handlers>
</system.webServer>
I search the entire Reporting Forum, with no luck. I put The dll files in the bin directory. Any advice? I may be missing something?
Thanx for your time.
P.D.
Im Using VS2005 in Vista Utimate.