Before getting into the sample code you should first create
a new ASP.NET web application using Visual Studio 2010. Follow these steps to
create the solution.
Launch Visual Studio 2010.
Select FileàNew Web Site…
from the menu.
Click on Visual C# from the list of installed templates.
Select ASP.NET Web Site from the list of templates.
Set the Web Location drop down to File Location.
Change the name of the web site to "C:\...\Documents\Visual Studio
2010\WebSites\SAPCrystalReports2010" where … points to your user path.
Click the OK button.
The new web site should be created. In Visual Studio 2010
when you create a new web site, by default, Visual Studio will add the
Default.aspx and web.config files but also a host of other files that are there
for best practice purposes such as a master page, an about page, and a Scripts
and a Styles folder. If you prefer not to have these files and folders created
then choose the "ASP.NET Empty Web Site" template when creating a new