change datasource before render report

I use SSRS on SQL Server 2008 to create reports from a report template and 
insert this into a word document.
All datasources, reports and template are stored on reportserver. 
On reportserver I can change datasource of report and report template. 

Now I want do this in Word. I choose a report and then a datasource. Now I 
want get this report with choosed datasource.

In this case I call webservice ReportExecution2005.asmx functions like this:

        Warning[] warnings;
        wsReportExecution2005.LoadReport2(reportName, null);

        switch (reportas.ToLower())
          case "image":
            deviceinfo = 
            deviceinfo = string.Empty;

        buffer = ReportExecution2005.Render2(
            out extension,
            out mimeType,
            out encoding,
            out warnings,
            out streamids

Is it possible to change datasource before load or render report? 
There was a function SetDatasource in reporting services 2000. I do missing 
this function.
How can I change the datasource.



1/11/2010 7:40:01 PM
sqlserver.reportingsvcs 542 articles. 0 followers. Follow

0 Replies

Similar Articles

[PageSpeed] 9


Similar Artilces:

Reports from outlook
When i run a report from my workstation than he always ask for my credentials. When i logon to the server locally with my credentials then it works. The CRM 3.0 and SQL 2005 server are running on the same server. How can I solve the problem that i can run a report from the outlook client? ...

Change Bussines Unit
I want to move crm user form one business unit to another. Is it possible to do it in CRM ? Yes, it is possible. Go to user list and from the tool bar select Change business unit... Do not open the users details! Mike "Mark" wrote: > I want to move crm user form one business unit to another. Is it possible to > do it in CRM ? ...

Permissions in AD for ADD/Change/Modify smtp proxy addresses
I have an Accounts Operator group that no longer can add or modify the SMTP Proxy email addresses in user properties. Don't know what happen, but could someone please tell me what specific permissions I need to give them to be able to add/change these addresses in user properties?? Thanks, Dana ...

Changing the Exchange Orginization Name
I'm trying to mount a mailbox store that was from another domain. After using esutil to clean the db, it still won't mount. The error I get points out that the Distinctive names are different. Event Type: Error Event Source: MSExchangeIS Event Category: General Event ID: 1088 Date: 11/19/2003 Time: 11:10:31 PM User: N/A Computer: MACHINE_A Description: The information store could not be loaded because the distinguished name (DN) /O=ABC CORPORATION/OU=FIRST ADMINISTRATIVE GROUP/CN=RECIPIENTS/CN= of message database "First Storage Group\Mailbox Store (MACHINE_A)" does not m...

Change color
I've a form on which there is a check box TaskComp and a text box TaskDate. Using the following VBA code, when the check box is checked, the Date in the text box is set to the current date. This works fine. Private Sub TaskComp_AfterUpdate() If TaskComp.Value = -1 Then TaskDate.Value = Date Else TaskDate.Value = Null End Sub I want the background color of the text box to change from whit to red when the check box is echecked, so I added to the code: Private Sub TaskComp_AfterUpdate() If TaskComp.Value = -1 Then TaskDate.Value = Date Else TaskDate.Value = Null If TaskCom...

Urgent help: change outlook default conatct form
Hi all, We added several fields to contacts in the standard form (design mode). We want this form to become users' default conatct form. Also, old contacts are able to launch from this new customized form. are these possible? exchange 2003/outllokk2003/outlook 2007) Yes. This is possible. You need to change the form on the folder properties and then run a program to change the IPM form used on existing items. See the last two sections at for details and link to the program. -- Diane Poremsky [MVP - Outlook] ...

Changing Source excel file causes links in word to fail
I've got a Word document with about 600 links to an excel spreadsheet. Updating the links works fine until the source excel file is changed thenword changes some portion of the links from Unformatted Text to a spreadsheet cell. Changing the links manually or with a macro there are some observed changes in the links. The cells that change are changed from Automatic to Manual and this happens to all of the cells on a single Excel row. There's nothing wrong with the data and the spreadsheet formats are identical. When I go back to the original settings I can change the ...

Change Admin Group
Is anyone aware of a workaround for changing a server from one Administrative Group to another? I know they aren't easily moved looking for a hack if available. Many thanks, Jeff "Jeff Abbott" <> wrote: >Is anyone aware of a workaround for changing a server from one >Administrative Group to another? I know they aren't easily moved looking >for a hack if available. Moving the server's easy. Making it work after you do it's a bitch. Moving an object between containers with ADSI isn't hard. Getting all the objects renam...

charting a single changing DDE cell
I have a spreadsheet that captures real time stock data via a DDE link. The cell captures the last price of a stock as it changes over time. Can you chart that changing cell as the day progresses. Maybe capture the data and then chart it or a macro which plots that cell every minute? Bob You would need to capture the value of that changing cell periodically in a growing table, possibly in a different sheet. For example, every time you update it via the DDE, you could run a code that copies the value of the cell to the last row of the table. Use a dynamic chart to plot the values in t...

cell font color changes
When i change a cell font to grey in Excel why doesn't it print grey when sent to a black printer. it only prints grey if sent to a color printer hi, Because the B/W printer can only print in black. the color printer can print in colors and to the printer gray is just another color. regards Frank >-----Original Message----- >When i change a cell font to grey in Excel why doesn't it print grey when >sent to a black printer. it only prints grey if sent to a color printer >. > Also, some b/w printers offer a "grayscale" option under Print Qualit or the lik...

Change Exchange Virtual Directory URL
Hi, how can i change the virtual directory in Exchange OWA URL default path is https://servername.domain.tld/exchange for OWA. I would like OWA is available by https://servername.domain.tld/ without /exchange in URL. Is that possible, with minimal administrative effort? Thanks Florian "flabs" <> wrote in message > Hi, > > how can i change the virtual directory in Exchange OWA URL > default path is https://servername.domai...

How do I change default file locations in Publisher 2007?
any answers gratefully received! You can't. You can put a folder into My Places, when you save a Publisher document, click on that folder. It is an extra step, the developers forgot to include a default path option. -- Mary Sauer MSFT MVP news:// "Jake" <> wrote in message > any answers gratefully received! Thanks Mary. LEt's hope it will be added in the future! Best JAke "Mary Sauer"...

Property Tax Reporting
Hello: The Fixed Assets tutorial on PartnerSource very briefly says that the Location ID in Fixed Asset Management factors into property tax reporting. How so? There are no property tax rates or calculations in Fixed Asset Management. Speaking of reports, it would be nice if Fixed Asset Management had forms of some sort that it could print. What I mean by that is that certain CPA firms use other software such as Thomson Creative Solutions as it prints out the necessary tax forms for the client. Do you think Fixed Asset Management will eventually have this? It would make it more ...

Mailbox Management Report is blank
I set up a policy to Generate a report of all users Sent and Deleted Items folders. I set the reporting level to Summary as a test and also Detail as a test. Each time I run the Mailbox Maintenancde Process, the email gets sent to the administrator I chose but it is blank. Even on the detail attachment it is blank. The event viewer log shows the correct information that should be on the report, but the email is blank. Any ideas? Does the exchange server need a MAPI client installed like 5.5 needed? You shouldn't install Oultook on your exchange server. I've run into problems wi...

Rotate a page to change its view in OneNote?
How do i rotate a page to change the view in OneNote? I want to rotate a page 90 degrees from portriat to landscape. -------- Original-Nachricht -------- > How do i rotate a page to change the view in OneNote? I want to rotate a > page 90 degrees from portriat to landscape. There is no ability in ON to rotate a page, even not for pictures. But for pictures/printouts there is a powertoy: Bernd ...

schedule a task to run a report
I need to use the Windows task scheduler to run a report, I can see how to do this if the access file is closed. What if the file is currently open ? regards Trevor -- Message posted via Hi Trevor, use a different database for the scheduler task ... link to all your tables, put your report in there and anything else it needs create an AutoExec macro that opens the report (which will automatically print unless you specify otherwise) and then exits Access Warm Regards, ...

Word randomly changing my figures and tables captions
I'm trying to format a large document, with over 150 tables and figures in it. I've used captions to label them all, but I'm now finding that Word is randomly changing some that I have specified as 'table' to 'figure' and vice versa. This particularly seems to be happening with tables and figures that appear on the same page, but is not restricted to these instances. As soon as I change one caption back to the correct type, the one below will change itself to the wrong type again! I need the captions to remain as I've entered them for my table of f...

Date Range on Report in Money 2003
I have a favorite report in Money 2003 which lists scheduled payments within a range of dates. My file was upgraded from Money 2000. I used to have the problem of the report omitting many of the scheduled transactions within the date range. That was fixed by running the Salvage program. Now the problem is the other way around: the report shows transactions BEYOND the date range, as well as those within. Is there a fix for that? I still have the Salvage program. :-) Thanks, Elliott ...

Changing database used with ODBC link
I have a excel spreadsheet containing many (we're talking thousand here!) of cells which look-up information via an ODBC link to our SQ Server database. This database has recently changed, so I need to mak every one of these queries point to a new database in the system Unfortunately the name of the database appears to be hardcoded in t each query. I have tried in vain to do a search and replace in a tex editor on the spreadsheet, but as I feared once I have done this th spreadsheet no longer opens. Is there any way to globally update the queries used? I don't fanc manually updating e...

how do i change the default number type which is formatted in new.
how do i change the default number type which is formatted in new spreadsheet Create a new workbook Change the Normal style (Format>Styles from the menu) to reflect your preferred number format. You can also change font style and size if your prefer. Save the workbook as a template - choosing File>Save As and select Template under the 'Save As Type' dropdown at the bottom, saving it with the name BOOK.XLT in the directory C:\Program Files\Microsoft Office\Office10\XLStart\ If you have an older or newer version, you may not see the Office10 subdirectory, so adjust as appr...

Change Font
I'm a SharePoint user. Sometimes when I post data into a SharePoint list field, the text appears in a format that differs from the rest of the data on the page. Sometimes it stays in the source format and sometimes it changes to another font that does not match the other cells on the page. How do I change the field fonts in SharePoint? I can find no command for this. The only place I'm aware of where fonts matter in SP fields are in the so-called "multiple line of text" type of field. There you are allowed to define fonts as it's sort of like a mini-w...

PO won't allow status change
Hi, we have a po, GP 10, the status is released. I want to cancel it but when we attempt to cancel it tells us we cannot change the status when an item has been received against it. I can't find where to tell what was received. I have tried to receive, receive & inv., match and nothing appears when each process is applied. Help says to remove a PO w/a Released status, close or cancel, but we are unable. Any suggestions? -- P McCarthy You can click on each line item on the PO and them click the Purchasing Quantity Status icon (the i in a circle) to see the detailed informati...

Sales Tax reporting on cash payment
Great Plains only allows us to report Sales Tax at time of invoicing. I would love to see a Sales Tax reporting setup option in which you are asked, how do you report? Time of INvoice or Time of Receipt. This was a feature of RealWorld software that anyone who upgrades to Great Plains has lost this functionality and now has to record their sales tax manually if they pay their sales tax based on when the Receivable Invoice is Paid. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click t...

Change Office Language by User
I think I've read enough in these pages to know that it's not possible to get Office to work in more than one language for a single User (I mean menu commands, dialogs, etc. -- not talking about dictionaries, puntuation, etc.). But does anyone know whether or not Office can be configured in two different languages on the same Mac (Mac mini, 10.4, pre-Intel), one different language for each of two different Users? When my Mac starts up, I have two Users set up, one for me in English, one for my mother-in-law in French. The OS is perfectly comfortable switching back and forth between la...

How to change windows appearance scheme?
Hello, How can I set the windows appearance scheme. Specifically I need to force the appearance scheme to Windows Standard. Also related can the appearance scheme be set to Windows Standard for just the application i.e. without affecting the appearance scheme for other applications and the desktop? Thanks, CarlH. As far as I know, this is not possible. The color scheme is at the discretion of the user. joe On Mon, 31 Jul 2006 12:18:59 -0400, "CharlesC" <> wrote: >Hello, > >How can I set the windows appearance scheme. Specifically I ...