Page 1 of 1

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

Posted: Sat Jun 02, 2007 2:16 am
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



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

Posted: Mon Jun 04, 2007 7:46 am
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.