当前位置: 网学 > 编程文档 > ASP > 正文

用ASP创建Word文件

来源:Http://myeducs.cn 联系QQ:点击这里给我发消息 作者: 用户投稿 来源: 网络 发布时间: 12/10/17
下载{$ArticleTitle}原创论文样式
ment with some closing text and specifyi

ng the template''s location, and then our subroutine.  

<%
objWordDoc.Application.ActiveDocument.Paragraph.Add.Range.InsertAfter(

"Thank you for shopping at Acme Co., and please come again!")
objWordDoc.Application.ActiveDocument.Paragraph.Add.Range.InsertAfter(

" ")
objWordDoc.Application.ActiveDocument.Paragraph.Add.Range.InsertAfter(

" ")
objWordDoc.Application.ActiveDocument.Paragraph.Add.Range.InsertAfter(

"Regards,")
objWordDoc.Application.ActiveDocument.Paragraph.Add.Range.InsertAfter(

" ")
objWordDoc.Application.ActiveDocument.Paragraph.Add.Range.InsertAfter(

"Daryl B. Morticum")
objWordDoc.Application.ActiveDocument.Paragraph.Add.Range.InsertAfter(

"Sales Associate")
End Sub
%>  
Hopefully this will get your gears spinning for ways you can do someth

ing similar. We are sure that we aren''t the only people who have had a

need to create a document from a Web page''s form. This is how we did  

it. If you have a better way, or an improvement on or method, we would

love to hear from you. 

网学推荐

免费论文

原创论文

浏览:
设为首页 | 加入收藏 | 论文首页 | 论文专题 | 设计下载 | 网学软件 | 论文模板 | 论文资源 | 程序设计 | 关于网学 | 站内搜索 | 网学留言 | 友情链接 | 资料中心
版权所有 QQ:3710167 邮箱:3710167@qq.com 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
Copyright 2008-2015 myeducs.Cn www.myeducs.Cn All Rights Reserved
湘ICP备09003080号