VC、IE、ASP環境下列印、預覽的完美解決方案
來源:互聯網
上載者:User
一種基於XML的報表開發工具,它支援從設計報表,調用API列印、預覽,能支援分布式報表、方便報表的儲存、轉寄。在報表中能嵌入VBScript,能方便地訪問VB,VC的變數,能訪問COM組件、ADO等遵循ActiveX標準的控制項。
包括報表可視化開發介面、報表文法解譯器,基於COM的組件。是分布式報表的完美解決方案
文法如下:
<?xml version="1.0" encoding="GB2312" ?>
<!DOCTYPE report SYSTEM "print_report.dtd" >
<report name='報表'>
<report_script>
dim rs,con,sql,lsh
dim temp
set con =CreateObject("ADODB.Connection") '建立ADO組件
con.ConnectionString = "DBQ=D:uml_projecteportdemoaspeport.mdb;DRIVER={Microsoft Access Driver (*.mdb)};"
con.open
Set rs =CreateObject("ADODB.Recordset")
sql="SELECT * FROM cj,student where cj.id=student.id "
rs.open sql,con,1,3
</report_script>
<report_head height='20'>
<text name='vfptext' font_name='宋體' font_size='14' font_weight='700' font_italic='0' font_underline='0' top='10' left='78' width='26' height='5' >
成績明細表
</text>
</report_head>
<page_head height='10'> <!--報表頭-->
<text name='vfptext' font_name='宋體' font_size='9' font_weight='100' font_italic='0' font_underline='0' top='2' left='162' width='6' height='3' >
合計
</text>