asp生成带有样式的word文件方法
来源:asp之家 时间:2011-04-18 10:30:00
代码如下:
< %
Set fso=Server.CreateObject("Scripting.FileSystemObject")
str="<html><title>asp生成word文件举例</title><body><span style='color:#ff0000;font-size:36px; font-weight:bold;'>欢迎光临词典网:www.cidianwang.com</span></body></html>"
filename= "2008.doc"
Set act = fso.CreateTextFile(server.mappath(filename), true)
act.WriteLine(str)
act.close
Set fso=Nothing
response.write "生成Word文件成功"
% >
标签:asp,生成word
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
css:小技巧大问题,cellSpacing用css样式代替方法,其它样式类似解决!
2009-10-04 20:35:00
CSS3:文字阴影知多少
2009-06-28 15:33:00
![](https://img.aspxhome.com/file/UploadPic/20096/28/01-91s.png)
在sql中返回插入的记录的id
2008-12-21 15:54:00
国外新闻报纸排版布局设计欣赏
2008-02-25 23:14:00
![](https://img.aspxhome.com/file/UploadPic/20082/25/2008225234113305s.jpg)
ASP不允许同一个用户同时登陆两次
2008-06-03 13:45:00
asp如何用SA-FileUp上传多个HTML文件?
2010-05-18 18:27:00
从SNS看社会化界面设计 I
2009-02-19 12:21:00
![](https://img.aspxhome.com/file/UploadPic/20092/19/01-43s.jpg)
在Spring中用select last_insert_id()时遇到问题
2009-05-24 19:50:00
关于导航的探讨
2008-03-21 12:04:00
ASP 写的判断 Money 各个位值的函数
2008-04-13 06:36:00
Oracle学习笔记(一)
2012-01-05 18:51:44
胜过语言的图形符号
2009-05-06 12:43:00
![](https://img.aspxhome.com/file/UploadPic/20095/6/2009-05-03_001747-150x137-79s.png)
js星级评分代码
2008-05-02 21:07:00
![](https://img.aspxhome.com/file/UploadPic/20085/2/star_78s.gif)
设计师如何更有效拿到结果?
2008-09-22 20:30:00
![](https://img.aspxhome.com/file/UploadPic/20089/22/2008922203620332s.jpg)
帮助你分析MySQL的数据类型以及建库策略
2009-02-23 17:39:00
asp小偷程序原理和简单示例
2007-11-05 17:12:00
css行高:line-height属性详解
2008-06-24 11:42:00
![](https://img.aspxhome.com/file/UploadPic/20086/24/2008624115434297s.gif)
通过事务日志解决SQL Server常见四大故障(二)
2009-03-25 13:51:00
设计上的小细节
2010-06-24 21:44:00
![](https://img.aspxhome.com/file/UploadPic/20106/24/joyo-11s.png)
细化解析:MySQL 数据库中对XA事务的限制
2009-01-14 11:59:00