| |
Data Dynamics Reports Support
Started by millers at 01-09-2009 2:09 PM. Topic has 5 replies.
 
 
 
|
|
Sort Posts:
|
|
|
|
01-09-2009, 2:09 PM
|
millers
Joined on 01-10-2009
Posts 4
|
Theme and MasterReport from Stream
|
|
|
|
|
I am currently evaluating Data Dynamics reports and looking at storing all report metadata (layout, theme, etc) in the database. It looks like I can store standard Report definition xml via a Stream in the database and I have a prototype of this working.
Is it possible to load a Report.MasterReport and/or a Report.ThemeUri from a stream instead of a file/URI? (..besides storing these in the database and creating a file/URI on the fly for use by these properties)
The goal is to allow a multi-user system to share certain fixed MasterReports and Themes which are defined by the administrator. The user can pick from a pre-definied theme or MasterReport (with datasources pre-defined) via a UI.
|
|
|
|
|
Report
|
|
|
|
01-12-2009, 8:49 AM
|
SandeepS
Joined on 12-11-2008
Posts 269

|
Re: Theme and MasterReport from Stream
|
|
|
|
|
Hello,
I would like to tell you that you would need to implement a custom resource locator which would query the database for the specific theme and/or master report files needed for the current report. You can find a very basic implementation as an API sample at the following location:
My Documents\Data Dynamics\Reports\version\Samples\API\CustomResourceLocator
As you have mentioned that you also want interactivity with the database then please refer to the following link:
http://www.datadynamics.com/forums/116049/ShowPost.aspx
Let me know if you need further assistance/clarification.
Regards,
Sandeep
|
|
|
|
|
Report
|
|
|
|
01-22-2009, 12:49 PM
|
millers
Joined on 01-10-2009
Posts 4
|
Re: Theme and MasterReport from Stream
|
|
|
|
|
Sandeep, thanks for the idea on the custom URI ResourceLocator. This works perfectly when passing a ReportDefinition to preview via the DataDynamics.Reports.Windows.Forms.ReportPreview object's OpenReport(ReportDefinition, ReportTitle) method. My CustomResourceLocator correctly resolves the MasterReport in this scenario:
ReportDefinition report = LoadReportDefinition(fromDatabaseKey); report.ResourceLocator = new MyCustomResourceLocator(); report.Report.MasterReport = string.Format("master://{0}", masterDatabaseKey);
However, the same report definition loaded into the designer via the DataDynamics.Reports.Design.User.UserDesignerControl object's Load(stream) method gives a "Master report not found. Please update the path." In this case, the code in MyCustomResourceLocator class is not being called even though the report definition contains the ResourceLocator property as above.
Is it possible to dynamically load a Master Report from a stream using the ResourceLocator method in the UserDesignerControl?
|
|
|
|
|
Report
|
|
|
|
01-22-2009, 7:50 PM
|
Sergey
Joined on 08-28-2004
Novosibirsk, Russia
Posts 2,785

|
Re: Theme and MasterReport from Stream
|
|
|
|
|
Hi, Unfortunately, End User Designer control doesn't allow specifying the ResourceLocator implementation for a report definition that is loaded to the designer from the stream. I have entered the new feature request for that, the case number is 124763.
Sergey Abakumoff GrapeCity
|
|
|
|
|
Report
|
|
|
|
02-16-2009, 3:24 PM
|
millers
Joined on 01-10-2009
Posts 4
|
Re: Theme and MasterReport from Stream
|
|
|
|
|
Excellent: I see 123763 is included as part of the new 1.5.1051.0 Release.
|
|
|
|
|
Report
|
|
|
|
02-17-2009, 4:09 AM
|
Amit Pal
Joined on 12-11-2008
Posts 517

|
Re: Theme and MasterReport from Stream
|
|
|
|
|
Thanks for your comments on the release of Data Dynamics Reports.
Do let us know if you require further assistance/clarifications.
Best Regards,
Amit
Amit Pal GrapeCity- DataDynamics
|
|
|
|
|
Report
|
|
|
|
|
GrapeCity » Product Support » Data Dynamics R... » Re: Theme and MasterReport from Stream
|
|
|
|
|