asp将数据读数导出Word打印

我试写了OA,其中的打印功能却不知道怎么样来实现。
前台用ASP编写,组成用VB编写,数据库是SQL 2000,
现在我想实现Web打印,打的SQL中一个表里的一条记录集,不知道怎么来实现。
能不能把这条记录集导出到word或者是excel保存?
能不能把这条记录集导出到word或者是excel打印?
---------------------------------------------------------------

 1<script language="javascript">   
 2  
 3function printsetup(){   
 4// 打印页面设置   
 5wb.execwb(8,1);   
 6}   
 7function printpreview(){   
 8// 打印页面预览   
 9  
10wb.execwb(7,1);   
11  
12}   
13  
14function printit()   
15{   
16if (confirm('确定打印吗?')){   
17  
18wb.execwb(6,6)   
19}   
20}   
21</script>
1<object classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height="0" id="wb" name="wb" width="3"></object>
1<input _print="" class="ipt" name="button" onclick=" javascript :printit();" type="button" value="打印"/>
1<input _setup="" class="ipt" name="button" onclick=" javascript : printsetup();" type="button" value="打印页面设置"/>
1<input class="ipt" name="button_show" onclick="javascript:printpreview();" type="button" value="打印预览"/>
1<input _fh="" class="ipt" name="button" onclick=" javascript:window.close();" type="button" value="关闭"/>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus