C++builder 显示ppt
终极威天 2014-09-13 10:22:44 #include "ComObj.hpp"
Variant vPowerPoint;
try {
vPowerPoint = CreateOleObject("PowerPoint.Application");
}
catch (...) {
ShowMessage("Error...");
}
vPowerPoint.OlePropertySet("Visible", true);
String strPptFile = "D:\\workspeis\\123.ppt";
vPowerPoint.OlePropertyGet("Presentations").OleFunction("Open",
strPptFile.c_str(), false, false, true);
vPowerPoint.OlePropertyGet("ActivePresentation").OlePropertyGet
("SlideShowSettings").OleFunction("Run");
妖哥我用你这段代码显示 PowerPoint Could not open the file
怎么改 ,,还有妖哥这ole还能隐藏powerpoint页面,用自己的窗口显示ppt谢谢