Use XMLVBS to print reports in ASP

Source: Internet
Author: User
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
%>



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.