一种基于XML的报表开发工具,它支持从设计报表,调用API打印、预览,能支持分布式报表、方便报表的存储、转发。在报表中能嵌入VBScript,能方便地访问VB,VC的变量,能访问COM组件、ADO等遵循ActiveX标准的控件。
包括报表可视化开发界面、报表语法解释器,基于COM的组件。是分布式报表的完美解决方案
语法如下:
1<report name="报表">
2<report_script>
3dim rs,con,sql,lsh
4dim temp
5set con =CreateObject("ADODB.Connection") '创建ADO组件
6con.ConnectionString = "DBQ=D:\uml_project\report\demo\asp\report.mdb;DRIVER={Microsoft Access Driver (*.mdb)};"
7con.open
8Set rs =CreateObject("ADODB.Recordset")
9sql="SELECT * FROM cj,student where cj.id=student.id "
10rs.open sql,con,1,3
11</report_script>
12<report_head height="20">
13<text font_italic="0" font_name="宋体" font_size="14" font_underline="0" font_weight="700" height="5" left="78" name="vfptext" top="10" width="26">
14成绩明细表
15</text>
16</report_head>
17<page_head height="10"> <!--报表头-->
18<text font_italic="0" font_name="宋体" font_size="9" font_underline="0" font_weight="100" height="3" left="162" name="vfptext" top="2" width="6">
19合计
20</text>
21</page_head>
22<page_body height="10">
23<text font_italic="0" font_name="宋体" font_size="9" font_underline="0" font_weight="100" height="4" left="15" name="vfptext" top="2" width="25">
24<report_script>
25Report.Write cstr(rs("xm"))
26</report_script>
27</text>
28</page_body>
29</report>
要想知道详情请访问: