|
SSRS, data source in custom code
|
|||
---|---|---|---|
#18+
В пользовательском коде необходимо сделать запрос к БД. Можно ли как то получить строку соединения отчета? Нашел код: Код: vbnet 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30.
Но увы ругается "тип DataSourceReference не определен". Есть идеи как использовать DataSource в custom code? ЗЫ: Отчет использует схему: http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition ... |
|||
:
Нравится:
Не нравится:
|
|||
07.02.2014, 16:23 |
|
SSRS, data source in custom code
|
|||
---|---|---|---|
#18+
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/27de3f46-5174-480d-b4d1-5e32772dae35/ssrs-2005-custom-code-shared-data-source-connection-string?forum=sqlreportingservices Там же был ответ тока я ничего не понял куда подставлять The type 'DataSourceReference' comes from Reporting Services's web service proxy class. Thus we add a web reference of the ReportingService2010.asmx (it is for SQL Server 2012) in our code to get the reference of all the classes used in the method posted by Zilong Lu. The reporting service's web service URL would be http://<<your machine name>>/<<ReportServer Name>>/ReportingService2010.asmx. The report server URL can also be found at configuration tools --> reporting service configuration manager --> Report manager (tab) А главное как потом получить значенее из кода ... |
|||
:
Нравится:
Не нравится:
|
|||
23.04.2014, 16:48 |
|
|
start [/forum/topic.php?fid=31&msg=38553739&tid=1533693]: |
0ms |
get settings: |
10ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
49ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
50ms |
get tp. blocked users: |
1ms |
others: | 286ms |
total: | 429ms |
0 / 0 |