当前位置:首页 > ASP教程 > ASP其他

asp生成带有样式的word文件方法

代码如下:
<BR />< % <BR />Set fso=Server.CreateObject("Scripting.FileSystemObject") <BR />str="<html><title>asp生成word文件举例</title><body><span style='color:#ff0000;font-size:36px; font-weight:bold;'>欢迎光临www.51frw.cn(硕编程)</span></body></html>" <BR />filename= "2008.doc" <BR />Set act = fso.CreateTextFile(server.mappath(filename), true) <BR />act.WriteLine(str) <BR />act.close <BR />Set fso=Nothing <BR />response.write "生成Word文件成功" <BR />% > <BR />
            
            


           
                
                                                

【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!