Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi Friends,

I'm using the Microsoft.SqlServer.ReportingServices2005.ReportingService2005() to upload reports on a reporting server programmatically. This works quite fine.

What I'm not able to figure out is how to set a user defined data source in the report programmatically. I don't want to use a shared data source which is created on the server. I'd rather have each report carry it's own data source information.

Currently I'm using the CreateReport(reportName, folderName, true, definition, null) method, which accepts a property parameter (the fifth one, which is null in my case).

Can I possibly use this parameter for my purpose? Unfortunately I couldn't find any specific information about that.

Any help would be very appreciated! Thank you very much in advance!

Srinivas
Posted
Updated 26-Sep-11 3:25am
v3

1 solution

Hi Srinivas,

Have a look at a codeproject knowledge base article here that will get you started.

Also look then at what Microsoft have to say.

From what I understand you need to create your own Data Processing Extension to extend your report server, that will allow you to set your datasource in c#

Hope this helps

Riaan
 
Share this answer
 
v5
Comments
Srinivas39 26-Sep-11 9:26am    
Thanks Riaan, But I couldn't find any solution over there. Please help me in providing another solution if you know any..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900