I. preface ASP is widely used in e-commerce, and report processing is troublesome. This document introduces how to use the ReportServerPage script in ASP to display and print reports. II. preparations (1) install VisualReprortDes
I. Preface
ASP is widely used in e-commerce, and report processing is troublesome. This article first introduces how to use the Report Server Page script in ASP to display and print reports.
2. preparations
(1) install Visual Reprort Design software
Visual Report Design is a free Report designer written by myself. you only need to install one control for the release of the program.
(2) design reports
You can use the Visual interface of Visual Report Design to generate a script for the Report: mxb. rsp.
3. print and display reports
The following is the call documentation:
Reference content is as follows:
Printmx. asp
<% Option Explicit %>
<%
Dim ReportName, ret
Dim ReportAtl
Dim name
Set ReportAtl = Session ("ReportAtl ")
ReportName = Server. MapPath ("mxb. rsp ")
Ret = reportatl. XMLToVBS (ReportName)
If ret =-1 then
Response. write reportatl. ErrorMsg
Response. end
End if
ReportName = Server. MapPath ("mxb. vbs ")
Ret = reportatl. DoScript (ReportName)
If ret =-1 then
Response. write reportatl. ErrorMsg
Set ReportAtl = nothing
Response. end
End if
Set ReportAtl = nothing
%>