Jan 06, 2012, 8:11 PM
Dynamic report using crystal reports / send parameters to crystal report
I managed to finally include a Crystal Report in a page using the code posted by Daniil in reply #5 in this thread.
However, I could only do this in the Page_Load event of the page. I couldn't get the same functionality if I put the same code in the Click DirectEvent of a button. Am I missing something there?
This code works in the Page_Load event, but not a Click DirectEvent:
Thanks in advance.
However, I could only do this in the Page_Load event of the page. I couldn't get the same functionality if I put the same code in the Click DirectEvent of a button. Am I missing something there?
This code works in the Page_Load event, but not a Click DirectEvent:
panReport.AutoLoad.Mode = Ext.Net.LoadMode.IFrame;
panReport.AutoLoad.Url = "testReport.aspx";
//panReport.Reload(); // EDIT: it is not necessary to reload here. The report will still be rendered.
Also, is it possible to send some parameters to this report? The user should be able to select i.e. a city from a combobox and then click a button to filter the results.Thanks in advance.