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.
1.
Launch Visual Studio 2010.
2.
Select FileàNew Web Site…
from the menu.
3.
Click on Visual C# from the list of installed templates.
4.
Select ASP.NET Web Site from the list of templates.
5.
Set the Web Location drop down to File Location.
6.
Change the name of the web site to "C:\...\Documents\Visual Studio
2010\WebSites\SAPCrystalReports2010" where … points to your user path.
7.
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
site.