如何在C ++中使用WinWord? [英] How to use WinWord from within C++?

查看:85
本文介绍了如何在C ++中使用WinWord?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

- 我发现一些像这样的网站和文档在C ++中使用Excel:

- I found some site and documentation like this to use Excel inside C++:

// Microsoft VBA对象

#import \

" C:\Program Files \Common Files\Microsoft Shared\VBA \VBA6 \vbe6ext.olb"

// Excel应用程序对象

#import" C:\Program Files \ Microsoft Office \ OFFFFICE11 \EXCEL.EXE" \\ b $ b重命名("DialogBox","DialogBoxXL")重命名("RGB","RBGXL")\

重命名(" DocumentProperties") ,"DocumentPropertiesXL")\

重命名("ReplaceText","ReplaceTextXL")\

重命名("CopyFile","CopyFileXL") \

排除("IFont","IPicture")no_dual_interfaces

//Microsoft VBA Objects
#import \
"C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\vbe6ext.olb"
//Excel Application Objects
#import "C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE" \
rename("DialogBox", "DialogBoxXL") rename("RGB", "RBGXL") \
rename("DocumentProperties", "DocumentPropertiesXL") \
rename("ReplaceText", "ReplaceTextXL") \
rename("CopyFile", "CopyFileXL") \
exclude("IFont", "IPicture") no_dual_interfaces

- 但我找不到与WinWord相关的任何类似内容。有人可以提供网站或书籍或文档,以便在visual c ++中使用Office吗?我的意思是,文档将是OOP(XL-> Visible = true;),不像COM调用(Invoke(" Visible),
...))。

- But I cannot found anything similar related to WinWord. Can someone give the site or the book or the documentation for use Office inside visual c++? I mean, document will be OOP (XL->Visible = true;) not like COM invoke (Invoke("Visible", ...)).

推荐答案

- 我的意思不仅仅是关于如何调用Word应用程序,我想要的第二件事是使用Office函数和属性的文档。

- I mean not just about how to call Word application, the 2nd thing I want is the Documentation for use Office functions and properties.

谢谢:D



thanks :D


这篇关于如何在C ++中使用WinWord?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆