Is there a way to use a designed report as a data coloection form? Perhaps exporting the control layout and data bindings to something that could be used in the VS designer interface?
3 Answers, 1 is accepted
0
Vassil Petev
Telerik team
answered on 13 Jun 2007, 04:35 PM
Hello roamer,
Thank you for your question, although we are not sure that we understand it in the context of our Reporting Tool.
A data collection form is a form with edit fields where one can add/edit data which can then be stored in a DB. The data collection form is usually read/write, whereas our Reporting Tool, similar to all reporting solutions, is read only. It is a data presentation tool for viewing reports. This said, we are not sure that our solution will help you achieve your goal because you cannot edit the data that is being presented in the report viewer.
Please, let us know if we misunderstood your question.
If a person spent a significant amout of time designing a report and wanted his data capture screen to look the same is there a way to export the LAYOUT of the report to the design surface of VS so it would not need to be recreated from scratch.
Thanks
0
Svetoslav
Telerik team
answered on 14 Jun 2007, 09:12 AM
Hello roamer,
At the current moment we don't offer any special functionality to create a copy of a report/layout. Nevertheless there are two possible ways to achieve this:
Duplicate the report by creating a copy of the report files and renaming the new report (you cannot have 2 classes with the same name), i.e
create copy of all report files (ex. Report1.cs, Report1.Designer.cs and Report1.resx)
rename all occurrences of the new report class to a different name in all files
add the new files in your project
Using the object-oriented approach you can create a report base class and then inherit from it as the subclasses will have exactly the same behavior and data as the super class.
We would suggest using the 2nd approach as it is much more clear, easy to implement and prevents you from code duplicates.