"SQL Server 2000 reporting services learning notes" (2) reportviewer sample ASP. NET Server Control
Private void page_load (Object sender, system. eventargs E)
{
// Subject: reportviewer sample ASP. NET Server Control
// Reportviewer is an ASP. NET Server Control developed using Visual Studio. NET.
// Based on the real-world solution, the server control demonstrates how to develop custom controls,
// To integrate reporting services reports into Web ApplicationsProgram.
// The reportviewer server control uses the Reporting Services URL access function
// Present and locate reports in a web browser.
This. reportviewer2.reportpath = "/report project3/market sales ";
This. reportviewer2.serverurl = "http: // localhost/reportserver ";
This. reportviewer2.toolbar = reportviewer. multistate. True; // "toolbar" attribute
This. reportviewer2.parameters = reportviewer. multistate. False; // "parameter" attribute
This. reportviewer2.zoom = "75%"; // "zoom" attribute
// This. reportviewer2.format = "pdf"; this property is set to 55555
This. reportviewer2.width = new unit (900); // "width" attribute
This. reportviewer2.height = new unit (500); // "height" attribute
// Reportviewer is a component inherent in reporting services.
}