Delphi中Word与浏览器交互
来源:互联网 发布:程序员被勒索1000万 编辑:程序博客网 时间:2024/06/06 04:25
var
WordApp,WordDoc: Variant;
doc: TWordDocument;
DocInx,oFileName,CfCversions,oReadOnly,AddToRctFiles,PswDocument,
PswTemplate,oRevert,WPswDocument,WPswTemplate,oFormat,oFileDoc: OleVariant;
begin
try
begin
WordApp := CreateOleObject('word.Application');
WordDoc := WordApp.documents.open('C:\Users\peixiaobin\Desktop\12312.doc');
oFileName := 'C:\Users\peixiaobin\Desktop\12312.html';
PswDocument := wdFormatFilteredHTML;
WordDoc.SaveAs(oFileName,PswDocument);
end;
finally
WordApp.quit;
end
WordApp,WordDoc: Variant;
doc: TWordDocument;
DocInx,oFileName,CfCversions,oReadOnly,AddToRctFiles,PswDocument,
PswTemplate,oRevert,WPswDocument,WPswTemplate,oFormat,oFileDoc: OleVariant;
begin
try
begin
WordApp := CreateOleObject('word.Application');
WordDoc := WordApp.documents.open('C:\Users\peixiaobin\Desktop\12312.doc');
oFileName := 'C:\Users\peixiaobin\Desktop\12312.html';
PswDocument := wdFormatFilteredHTML;
WordDoc.SaveAs(oFileName,PswDocument);
end;
finally
WordApp.quit;
end
end;
word编辑文件,网页视图,编辑。然后通过这个程序转换成html格式。传输到POS端。可以打开这个文件。进行浏览。
以前使用另存成XPS来进行传输,但是XPS是office2010才出来的。用IE打开的时候也比较慢。显示的效果也不太好看。delphi7支持到officexp:与office交互起来有点困难。最后只能保存成word.然后保存成html进行传输。
0 0
- Delphi中Word与浏览器交互
- Delphi与Word(一)合并Word 表格中单元格
- Delphi与Word(一) 合并Word 表格中单元格
- Matlab与Word交互
- Delphi与Flex交互
- Delphi与Word 举例
- Delphi与Word
- Delphi中编辑word
- MATLAB与word的交互
- Delphi WebBrowser与网页交互
- Delphi与Word例1
- 在Delphi中操作Word
- 将Word嵌入Delphi中
- 将Word嵌入Delphi中
- 将Word嵌入Delphi中
- 总结Flex与浏览器交互
- 总结Flex与浏览器交互
- 总结Flex与浏览器交互
- libevent定时器机制
- 软件构架师的十大特点
- [leetcode] Single Number
- 第十一周上机项目三
- p12 pem 互转
- Delphi中Word与浏览器交互
- HDU 1.3.3 开门人和关门人
- QCOM GIC 分析(ARM64)
- ath6kl related
- 递归查找指定节点
- libevent示例代码
- Construct Binary Tree from Preorder and Inorder Traversal(leetcode)
- nginx+tomcat集群及使用memcache支持session共享 配置说明
- 重写js的Date.format