|
Cristal Report в VS 2003, как передать датасет в репорт
|
|||
---|---|---|---|
#18+
Здравствуйте. Вопрос такой, в виндовой программе есть датасет, и надо на его основе построить отчёт (просто распечатать одну из таблиц). Как передать этот датасет в репорт? Спасибо. ... |
|||
:
Нравится:
Не нравится:
|
|||
29.05.2006, 10:33 |
|
Cristal Report в VS 2003, как передать датасет в репорт
|
|||
---|---|---|---|
#18+
public void SetDataSource(string AHeader, DataSet ds, string reportFile) { if (!File.Exists(reportFile)) { throw new ReportException(string.Format("Файл отчета [{0}] не найден", reportFile)); } ReportDocument doc = new ReportDocument(); doc.Load(reportFile); doc.SetDataSource(ds); doc.Refresh(); reportViewer.ReportSource = doc; } ... |
|||
:
Нравится:
Не нравится:
|
|||
30.05.2006, 12:28 |
|
|
start [/forum/topic.php?fid=31&msg=33757517&tid=1539005]: |
0ms |
get settings: |
11ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
127ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
40ms |
get tp. blocked users: |
2ms |
others: | 304ms |
total: | 521ms |
0 / 0 |