How to Display DataBase Name in Master Detail Wizard ???

Stimulsoft Reports.NET discussion
Post Reply
jayakumargr
Posts: 85
Joined: Sat Jan 20, 2007 4:21 am

How to Display DataBase Name in Master Detail Wizard ???

Post by jayakumargr »

Hi,
I create templates using wizard. for that i wrote following,

StiReport obj = new StiReport();
obj.Load("C:\\Documents and Settings\\jayakumar\\Desktop\\Template123.mrt");

Stimulsoft.Report.Design.Wizards.StiMasterDetailWizardService wizard = new Stimulsoft.Report.Design.Wizards.StiMasterDetailWizardService();
Stimulsoft.Report.StiReport rptNew = wizard.CreateReport(obj);

if(rptNew!=null)
{
rptNew.Design();
}

Template123.mrt file have a database name like "XYZ". but it doesn't display in Wizard. it shows like "Data From Sql Connection" instead of "XYZ".

How to Show the Database Name in Wizard ???

Please Provide the Solution...

Thanks in Advance,
Jayakumar


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

How to Display DataBase Name in Master Detail Wizard ???

Post by Edward »

jayakumargr wrote:Hi,
I create templates using wizard. for that i wrote following,

StiReport obj = new StiReport();
obj.Load("C:\\Documents and Settings\\jayakumar\\Desktop\\Template123.mrt");

Stimulsoft.Report.Design.Wizards.StiMasterDetailWizardService wizard = new Stimulsoft.Report.Design.Wizards.StiMasterDetailWizardService();
Stimulsoft.Report.StiReport rptNew = wizard.CreateReport(obj);

if(rptNew!=null)
{
rptNew.Design();
}

Template123.mrt file have a database name like "XYZ". but it doesn't display in Wizard. it shows like "Data From Sql Connection" instead of "XYZ".

How to Show the Database Name in Wizard ???
Please add the following method

Code: Select all

obj.Dictionary.Synchronize();
after loading a report template from the file and before calling the Wizard:

Code: Select all

obj.Load("C:\\Documents and Settings\\jayakumar\\Desktop\\Template123.mrt");
obj.Dictionary.Synchronize();
Stimulsoft.Report.Design.Wizards.StiMasterDetailWizardService wizard = new Stimulsoft.Report.Design.Wizards.StiMasterDetailWizardService();
Thank you.
Post Reply