This example demonstrates how to create an End-User Reporting Application similar to a WinForms application that stores reports in the web server's filesystem. The ASPxFileManager control is used to implement the file Open and Save dialog boxes.
In this example, a separate ASP.NET UserControl named "FileDialogControl" is used to implement the Open/Save file dialog window. The ASPxCallback control is used to validate an entered file name in the dialog. FileDialogControl's client-side functionality is moved to a separate javascript class named ClientFileDialogControl (its source code is located in the ClientFileDialogControl.js file).
Important Note: Data modifications are not allowed in our code examples, so there is code in the FilesystemReportStorageWebExtension class's SetData and SetNewData methods that throws exceptions when a report is saved. You should comment out these lines in the mentioned methods after downloading this code example to allow data modifications on your side.
See also:
How to integrate the Web Report Designer into a web application
Question Comments
Added By: gopi matsa at: 2/20/2016 1:12:09 AM i am not able to load the reportAdded By: gopi matsa at: 2/20/2016 1:13:08 AM Please Find me the solution for loading the report to the report designer
Added By: Roy Banueelos at: 2/20/2016 9:41:26 AM Have you tried making a default report? I did this by making a blank XtraReport using the report wizard and saving it inside my program then I invoked a new instance of that report inside the report designers’ code behind.
[C#]// using the same Default.aspx.cs given in the example// for me I put a separate file just for my reports so I will show that method herepublicpartialclassDefault:System.Web.UI.Page{protectedvoidPage_Init(objectsender,EventArgse){if(!IsPostBack){reportDesigner.OpenReport(newT227679.Reports.rptStarter());// calling a new instance of my default report}}}
Added By: gopi matsa at: 2/22/2016 2:32:29 AM i am not able to understand ur post ,what is the reports in that context and rptstarterAdded By: Roy Banueelos at: 2/22/2016 9:27:54 AM
The Xtra reports are Devexpress reports. You can add one by going to the solution explorer, right click your project and click ‘Add Devexpress Item’ then click ‘New Item’. From the list of items, look for ‘report wizard’. From here you have two choices data-bound report which will bind you report to a database ,or make an unbounded empty report. Binding it to a database requires you to make a query to the database or invoke a stored procedure. Empty reports have no connection to any database and requires a lot of customization.
Added By: Gary Puerini at: 9/22/2016 10:45:36 AM Please comment out the "throws" inFilesystemReportStorageWebExtension.cs in the SetData methods.
It was very annoying to track down why it was not saving.
Added By: Gary Puerini at: 9/22/2016 11:25:32 AM Try to work through the example. It appears to be saving the file fine.However, when I try to load a saved version, it appears to load correctly, but the report on the web page does not refresh and still shows my original loaded version.
Any idea what I might be missing?
Same thing happens (more or less) with the sample down load, except I get an invalid char error).
(I'm using 15.2.4)
Added By: Vasily (DevExpress Support) at: 9/23/2016 7:23:22 AM
Hi Gary,
>>Please comment out the "throws" in
Note that data modifications are not allowed in our code examples, so these lines throwing the exception were specially added to this example's code to make it possible to run it online on our web site. In any case, I have updated this code example's description by adding a note saying that these lines should be commented to allow report saving.
>>However, when I try to load a saved version, it appears to load correctly, but the report on the web page does not refresh and still shows my original loaded version.
To process your question more efficiently, I have extracted it to a separate ticket created on your behalf: T431324: The report on the web page is not refreshed when the approach from the T227679 code example is used. It has been placed in our processing queue and will be answered shortly.
I believe I was able to find a work around for the time being using another example on your site.
Thanks for the response.
Added By: Vasily (DevExpress Support) at: 9/23/2016 7:52:55 AM I am happy to hear that you have managed to solve this issue. Anyway, if you need any further help with this subject, please feel free to contact us.