Page 2 of 2
Rename DataSource Items
Posted: Wed Jun 10, 2009 7:05 am
by saidin
Hello Jan,
There is not any property like NameInSource
Report.Dictionary.DataSources.Item("NewPersonalName").NameInSource = "Personal" >>Error For NameInSource
Thank you.
Rename DataSource Items
Posted: Wed Jun 10, 2009 9:12 am
by Jan
Hello,
Please convert data source to Stimulsoft.Report.Dictionary.StiDataStoreSource. Base type StiDataSource does not have NameInSource property.
Thank you.
Rename DataSource Items
Posted: Thu Jun 11, 2009 1:52 pm
by saidin
Hello,
There is not any property like StiDataStoreSource! :brick:
Thank you
Rename DataSource Items
Posted: Thu Jun 11, 2009 7:25 pm
by Edward
Hi
Please modify the code as follows:
Code: Select all
TryCast(report.Dictionary.DataSources.Item("NewPersonalName"),Stimulsoft.Report.Dictionary.StiDataStoreSource).NameInSource = "Personal"
Thank you.
Rename DataSource Items
Posted: Thu Jun 11, 2009 11:13 pm
by saidin
Hello,
Your code:
Report.Dictionary.DataSources.Item("Personal").Name="NewPersonalName"
TryCast(report.Dictionary.DataSources.Item("NewPersonalName"),Stimulsoft.Report.Dictionary.StiDataStoreSource).NameInSource = "Personal"
Result is :
NewPersonalName[Personal]
But I want:
NewPesonalName
Thank you
Rename DataSource Items
Posted: Fri Jun 12, 2009 1:25 pm
by Arthur
If you have access to the dataset before you pass it to the dictionary you can name the dataset and table using the dataset properties
dataset.DataSetName = "NewDSName"
dataSet.Tables(0).TableName = "NewTableName"
dataSet.Tables(0).Columns(0).ColumnName = "NewColumnName"
Then when you pass the dataSet to the dictionary it has everything named already.
Hope this helps.
Rename DataSource Items
Posted: Sun Jun 14, 2009 12:34 pm
by Jan
Hello,
saidin wrote:Hello,
Your code:
Report.Dictionary.DataSources.Item("Personal").Name="NewPersonalName"
TryCast(report.Dictionary.DataSources.Item("NewPersonalName"),Stimulsoft.Report.Dictionary.StiDataStoreSource).NameInSource = "Personal"
Result is :
NewPersonalName[Personal]
But I want:
NewPesonalName
Thank you
You need also change Alias to NewPersonalName.
Thank you.
Rename DataSource Items
Posted: Wed Dec 23, 2009 12:19 pm
by miguel
hello as would be this line in c #
TryCast(report.Dictionary.DataSources.Item("NewPersonalName"),Stimulsoft.Report.Dictionary.StiDataStoreSource).NameInSource = "Personal"
Rename DataSource Items
Posted: Wed Dec 23, 2009 12:35 pm
by Edward
Hi
Here you are:
(report.Dictionary.DataSources.Item("NewPersonalName") as Stimulsoft.Report.Dictionary.StiDataStoreSource).NameInSource = "Personal"
Thank you.