【相关文章:一片全面介绍ScriptEncoding】
一、前言 【扩展阅读:堵住ASP漏洞】
【扩展信息:服务器就是这样被黑的】 asp在电子商务上应用广泛,报表的处理又有一些麻烦。本文介绍了在asp中利用本人写的report server page脚本解释器实现报表的显示、打印。 二、准备工作 (1)安装visual reprort design软件 visual report design是本人写的一个免费的报表设计器,程序的发行只需要 安装一个60k的控件即可。 想要的网友可以到http://go.163.com/reportpro/下载 (2)设计报表 通过visual report design 的可视化界面可以生成报表的脚本:mxb.rsp。 三、实现报表的打印、显示 下面是调用的文档: 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 ifreportname=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 %> <html> ... 下一页