如何打开chm文件?如何调用Excel打开某一xls文件?

qiu_sj 2003-10-13 09:20:18
如题?
...全文
84 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
qiu_sj 2003-10-13
  • 打赏
  • 举报
回复
谢谢各位的帮助
运行ex1:=createoleobject('excel.Application');不让编译呀
dickeybird888 2003-10-13
  • 打赏
  • 举报
回复
uses shellapi
ShellExecute(Handle,Pchar('Open') ,Pchar('C:\a.chm'),'','',SW_SHOWNORMAL);
2.打开execl
var
ex1:variant;
begin
ex1:=createoleobject('excel.Application');
ex1.visible:=true;
ex1.Workbooks.Open('d:\book2.xls');
ex1.ActiveWindow.WindowState:=2;//最大化
end;
dickeybird888 2003-10-13
  • 打赏
  • 举报
回复
1.打开chm
uses shellapi
ShellExecute(Handle,Pchar('Open') ,Pchar('C:\a.chm'),'','',SW_SHOWNORMAL);
2.打开execl
var
ex1:variant;
begin
ex1:=createoleobject('excel.Application');
ex1..visible:=true;
ex1..Workbooks.Open('d:\book2.xls');
ex1..ActiveWindow.WindowState:=2;//最大化
end;
soldier7451 2003-10-13
  • 打赏
  • 举报
回复
打开CHM文件

shellexecute(handle,'open','.\help.chm',nil,nil,SW_SHOWMAXIMIZED);
qiu_sj 2003-10-13
  • 打赏
  • 举报
回复
up

5,388

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧