Page 2 of 2

Problem Creating Report in Code

Posted: Tue Jun 12, 2007 3:32 pm
by Vital
You can use following code:

Code: Select all

foreach (StiDataSource dataSource in report.Dictionary.Datasources)
foreach (StiDataColumn dataColumn in report.Dictionary.Columns)
{
......
}
For also you can get build from 13 June (when it will be available). This build automatically check all column name on equaling to keywords.

Thank you.

Problem Creating Report in Code

Posted: Wed Jun 13, 2007 1:59 am
by Edward
Sorry for my previous automatically error.

The code above in my previous post should be the following:

Code: Select all

(Categories.Columns["CategoryID"] as StiDataColumn).Name = "MyDate";
// Since the name of 'CategoryID' column is changed we should refer to it as 'MyDate' instead of 'CategoryID'
(Categories.Columns["MyDate"] as StiDataColumn).NameInSource = "Date";
Please let us know if we should clear up something in that direction.

Thank you.

Problem Creating Report in Code

Posted: Wed Jun 13, 2007 4:32 am
by spv123
Thanks, that works fine :grinder:

Problem Creating Report in Code

Posted: Wed Jun 13, 2007 4:49 am
by Edward
Thank you for working above the issue.

Together we've fixed it.

Also we recommend you to download the latest prerelease version from June 13. We've made additional improvements in that field.

Thank you.