Feature Question

Stimulsoft Reports.NET discussion
EDV Gradl
Posts: 228
Joined: Sat Jun 17, 2006 9:50 am
Location: Germany

Feature Question

Post by EDV Gradl »

Two months ago, there was a feature request to use reports (or parts) in the dictionary of other reports.

Is this feature already implemented?

If yes, how do I use it?

I no, whats the eta?

Thanks!
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Feature Question

Post by Edward »

EDV wrote:Two months ago, there was a feature request to use reports (or parts) in the dictionary of other reports.

Is this feature already implemented?

If yes, how do I use it?

I no, whats the eta?

Thanks!
We are finishing our work on the new feature: Report inheritance. This feature allows you to create a Master report and then to create descendant reports via Master.

Thank you.
shmuly
Posts: 58
Joined: Wed Jul 05, 2006 2:19 pm

Feature Question

Post by shmuly »

What capabilities will the child report have? Will we be able to add fields? Remove fields? WIll they have 1 data source or 1 for the base and 1 for the child report?

I just wanted to add that I think ith a bit more marketing you guys could be the leaders in reporting. No other reporting solution has nearly the amount of features and flexibilty that you have.

Thanks
EDV Gradl
Posts: 228
Joined: Sat Jun 17, 2006 9:50 am
Location: Germany

Feature Question

Post by EDV Gradl »

Very nice to hear that. :biggrin: Could you describe how this feature is used?

Thanks!
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Feature Question

Post by Edward »

Now testing of the inheritance feature is still in process. When we finish testing and improvment of the feature we will inform you with a detail instruction how to use it.

Thank you.
EDV Gradl
Posts: 228
Joined: Sat Jun 17, 2006 9:50 am
Location: Germany

Feature Question

Post by EDV Gradl »

Anything new on this request???
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Feature Question

Post by Edward »

EDV wrote:Anything new on this request???
We have finished to develop inheritance of the reports.
There are two ways of report inheritance:
1. Creation of the basic class of a report
2. Creation of the master-report

In both ways you should create the basic report in the designer that includes all necessary elements. You may add the following components to the basic reports:
• Pages
• Components
• Data sources
• Variables
• Connections
After the report has been created you may either save the report as a special basic class (for this you should use the Save as command) or may save the report as a regular report and then use it as a master report.
In the first case you will get the c# or vb.net class, and will be able to create new reports. For example:

Code: Select all

Reports.Report master = new Reports.Report();
master.RegData(dataSet);
master.Design();
In order to use the basic report when creating a new report in the designer you need to add the following string of a code:

Code: Select all

StiReport.ReportType = typeof(Reports.Report);
Then all new reports will be automatically inherited from the basic class.
In the second way you need to use the following code:

Code: Select all

StiReport masterReport = new StiReport();
masterReport.Load("d:\\master-detail.mrt");

StiReport report = new StiReport();
report.RegData(dataSet);
			
report.MasterReport = masterReport.SaveToString();
report.Design();

Thank you.
EDV Gradl
Posts: 228
Joined: Sat Jun 17, 2006 9:50 am
Location: Germany

Feature Question

Post by EDV Gradl »

When I call Report.Design(true), I get this error:

System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
Source="Stimulsoft.Report"
StackTrace:
at Stimulsoft.Report.StiInheritedReportComparer.CompareComponents(StiReport report, StiReport masterReport)
at Stimulsoft.Report.StiInheritedReportComparer.Compare(StiReport report, StiReport masterReport)
at Stimulsoft.Report.StiReport.UpdateInheritedReport()
at Stimulsoft.Report.StiReport.Design(Form parentForm, Boolean dialogForm)
at Stimulsoft.Report.StiReport.Design(Boolean dialogForm)
at WGPReportDesigner.Bericht.ShowDesigner() in D:\WGP Next Generation\WGPReportDesigner\Bericht.cs:line 85
at WGPReportDesigner.Main.barButtonItemLSObjektDetail_ItemClick(Object sender, ItemClickEventArgs e) in D:\WGP Next Generation\WGPReportDesigner\Main.cs:line 294
at DevExpress.XtraBars.BarItem.OnClick(BarItemLink link)
at DevExpress.XtraBars.BarBaseButtonItem.OnClick(BarItemLink link)
at DevExpress.XtraBars.BarItemLink.OnLinkClick()
at DevExpress.XtraBars.BarItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
at DevExpress.XtraBars.BarButtonItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
at DevExpress.XtraBars.BarItemLink.OnLinkActionCore(BarLinkAction action, Object actionArgs)
at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.ClickLink(BarItemLink link)
at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.UnPressLink(BarItemLink link)
at DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnUnPressItem(DXMouseEventArgs e, RibbonHitInfo hitInfo)
at DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnUnPress(DXMouseEventArgs e, RibbonHitInfo hitInfo)
at DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnMouseUp(DXMouseEventArgs e)
at DevExpress.XtraBars.Ribbon.Handler.RibbonHandler.OnMouseUp(DXMouseEventArgs e)
at DevExpress.XtraBars.Ribbon.RibbonControl.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.Utils.Controls.ControlBase.WndProc(Message& m)
at DevExpress.XtraBars.Ribbon.RibbonControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at DevExpress.Utils.Win.Hook.ControlWndHook.CallWindowProc(IntPtr pPrevProc, IntPtr hWnd, Int32 message, IntPtr wParam, IntPtr lParam)
at DevExpress.Utils.Win.Hook.ControlWndHook.WindowProc(IntPtr hWnd, Int32 message, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at WGPReportDesigner.Program.Main() in D:\WGP Next Generation\WGPReportDesigner\Program.cs:line 19
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Feature Question

Post by Edward »

Please send to Image class of your report or a mrt file for analysis.

Thank you.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Feature Question

Post by Vital »

Problem solved.
Thank you for your cooperation.
Post Reply