Readme_AsynchronousRender Sample Windows Application
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
This sample works only with SQL Server 2005 and SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2005.
AsynchronousRender is a sample Windows application developed using Visual Studio 2005. The application is based on a real-world scenario, and it demonstrates how to develop a Windows application that uses the Report Server Web service. The sample uses the SOAP API to enable you to view the contents of a local report server, to select a report, and then to render that report to disk using asynchronous server communication. This sample is not supported on Itanium-based operating systems.
Important
These Samples are provided for educational purposes only. They are not intended to be used in a production environment and have not been tested in a production environment. Microsoft does not provide technical support for these samples. Sample applications and assemblies should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator. Microsoft does not provide technical support for these samples.
Requirements
You should be familiar with Visual Studio and one or more of the .NET Framework programming languages, and you should have installed the following to use the AsynchronousRender sample:
- Microsoft Visual Studio 2005. This sample is not compatible with Visual Studio 2008.
- Microsoft .NET Framework 2.0.
- SQL Server, including Reporting Services.
- Reporting Services samples.
- A report server that you have permission to access on your network, if you plan to use the sample client application to view the contents of a report server and render reports.
Important
SQL Server samples and sample databases must be downloaded and installed before you can view or work with them. For more information, see Considerations for Installing SQL Server Samples and Sample Databases.
Location
This sample is located by default at:
C:\Program Files\Microsoft SQL Server\100\Samples\Reporting Services\Application Samples\ReportSearch Sample
Building the Sample
If you have not already created a strong name key file, generate the key file using the following instructions.
To generate a strong name key file
Open a Microsoft Visual Studio 2005 command prompt. Click Start, point to All Programs, point to Microsoft .NET Framework SDK 2.0, and then click SDK Command Prompt.
-- or --
Open a Microsoft .NET Framework command prompt. Click Start, point to All Programs, point to Microsoft .NET Framework SDK 2.0, and then click SDK Command Prompt.
Use the change directory command (CD) to change the current directory of the command prompt window to the folder where the samples are installed.
Note
To determine the folder where samples are located, click the Start button, point to All Programs, point to Microsoft SQL Server, point to Documentation and Tutorials, and then click Samples Directory. If the default installation location was used, the samples are located in <system_drive>:\Program Files\Microsoft SQL Server\100\Samples.
At the command prompt, run the following command to generate the key file:
sn -k SampleKey.snk
Important
For more information about the strong-name key pair, see "Security Briefs: Strong Names and Security in the .NET Framework" in the .NET Development Center on MSDN.
To build and run the AsynchronousRender sample within Visual Studio
Open the solution (AsynchronousRenderCS.sln or AsynchronousRenderVB.sln).
From the Debug menu, click Start Without Debugging.
To exit the application, click Exit.
To build and run the AsynchronousRender sample from the Command Line
Use the Change Directory command to change to the AsynchronousRender directory.
Type the following to build both the C# and Visual Basic versions of the sample, modifying the .NET Framework path as appropriate. For example:
for /r %f in (*.sln) do C:\WINDOWS\Microsoft.NET\Framework\v2.0.40607\msbuild.exe "%f"
In the application's \Bin\Debug directory, double-click AsynchronousRender.exe to start the application.
To exit the application, click Exit.
Using the Sample
After building and running the AsynchronousRender sample application, you can use the sample to browse for and render reports in your report server database. By default, the application attempts to connect to an instance of the Report Server Web Service located on the same computer running AsynchronousRender.
Important
Sample applications should not be connected to or used with your production SQL Server database or your report server without the permission of the system administrator.
To use the AsynchronousRender sample application
Use the Connect button to make a connection to the local report server and retrieve a list of items in the report server namespace.
Select a report using the TreeView control.
When a report is selected, you can render the report to Web archive (MHTML) asynchronously. To render the report, click Render.
An execution timer runs while the application waits for a response from the server. When the report is rendered and ready, a message box appears. To save the report to disk, click Yes.
Choose a location and type a name for the report, and then click Save.
To exit the application, click Exit.
See Also
Tasks
Compiling and Running Code Examples
Reporting Services Samples
Other Resources
Application Samples (Reporting Services)