|
主题: batyvn,如何使用COM组建创建word文档?
|
 我知道
职务:普通成员
等级:4
金币:2.0
发贴:2211
|
#12002/7/8 8:00:56
######################################################
ACTION="CONNECT" CLASS="Word.Application" NAME="objWord" TYPE="COM"> ACTION="CREATE" CLASS="Word.Application" NAME="objWord" TYPE="COM">
/* This will open Word if running locally */ objWord.Visible = false; /* This returns the 'Documents' collection the Word Object */ objDoc = objWord.Documents; /* Create a new document */ newDoc = objDoc.Add(); /* Save the document to a location */ newDoc.SaveAs("C:\cfmx\template_new.doc"); /* We specify the range of '0' -- start at the beginning of the document */ docRange = newDoc.Range(0); /* Add text to the range */ docRange.Text = "Hello World!"; /* Save the changes */ newDoc.Save(); /* Close the document */ newDoc.Close(); /* Quit Word */ objWord.Quit();
############################################################################ 请问书写文字有docRange.Text = "Hello World!"这种属性,那么插入图片使用什么属性呀? 听说你有全套的解决方案,可否指教一二呀!
|
 5DDC版主
职务:版主
等级:6
金币:10.0
发贴:3820
|
#22002/7/8 9:12:55
用COM吧HTML转换成RIF就可以带图片了!但是图片必须存在于root 路径,并且客户查看的时候必须与root途经保持连接!
|
 我知道
职务:普通成员
等级:4
金币:2.0
发贴:2211
|
#32002/7/8 9:46:07
html2word这个TAG我怎么没找到!
|
 我知道
职务:普通成员
等级:4
金币:2.0
发贴:2211
|
#42002/7/8 10:03:18
呵呵,我在这http://www.cfcomet.com/utilities/找到了!
|
 我知道
职务:普通成员
等级:4
金币:2.0
发贴:2211
|
#52002/7/8 11:11:28
batyva! 给我介绍介绍soedit编辑器的情况吧!
|
 5DDC版主
职务:版主
等级:6
金币:10.0
发贴:3820
|
#62002/7/8 11:24:03
soedit编辑器还是不错,原理是通过JS代码操作XML数据,功能很强大,原来的版本有一些问题,比如回车换行不正常,编辑显示中文乱码,以及加载过慢等问题,我最新的版本修改以后,已经完全解决了这个问题,在我的OA中可以看到具体的应用。基本上可以完全替代word程序!
|
 我知道
职务:普通成员
等级:4
金币:2.0
发贴:2211
|
#72002/7/8 13:46:27
version encrypted price* soEditor Lite Yes FREE! No $99.00 USD soEditor Pro Yes $299.00 USD No $399.00 USD
我正在使用免费版本,请问应该如何修改它的中文显示问题?
|
 5DDC版主
职务:版主
等级:6
金币:10.0
发贴:3820
|
#82002/7/8 13:52:09
很麻烦,编码部分需要重写!
|
 我知道
职务:普通成员
等级:4
金币:2.0
发贴:2211
|
#92002/7/8 13:54:21
算了!我看了免费版加密的,想改也改不了! 哎,天下没有免费的午餐!
|