Easy to implement report printing under the ASP environment

zhaozj2021-02-17  48

First, preface ASP is widely used in e-commerce, and there are some troubles to deal with reports. This article describes the display and printing of the Report Report in the ASP. Second, preparation (1) Installing Visual Reprort Design software Visual Report Design is a free report designer written by I, and the issuance of the program only needs to install a 60K control. Want users can go to http://go.163.com/reportpro/ Download (2) Design Reports You can generate reports scripts with Visual Report Design: MXB.RSP. Third, implement the printing of the report, show the documentation below: 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 endiff

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%>