|
|
|
Cristal Report в VS 2003, как передать датасет в репорт
|
|||
|---|---|---|---|
|
#18+
Здравствуйте. Вопрос такой, в виндовой программе есть датасет, и надо на его основе построить отчёт (просто распечатать одну из таблиц). Как передать этот датасет в репорт? Спасибо. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 29.05.2006, 10:33:17 |
|
||
|
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:13 |
|
||
|
|

start [/forum/moderation_log.php?user_name=%D0%A1%D1%82%D0%B8%D0%BA]: |
0ms |
get settings: |
17ms |
get forum list: |
31ms |
get settings: |
21ms |
get forum list: |
20ms |
check forum access: |
7ms |
check topic access: |
7ms |
track hit: |
63ms |
get topic data: |
21ms |
get forum data: |
6ms |
get page messages: |
56ms |
get tp. blocked users: |
3ms |
| others: | 833ms |
| total: | 1085ms |

| 0 / 0 |
