谁知道,怎么用程序打开指定的WORD文档(5分)

  • 主题发起人 主题发起人 sdenf
  • 开始时间 开始时间
S

sdenf

Unregistered / Unconfirmed
GUEST, unregistred user!
大家来告诉我了
 
UINT WinExec(

LPCSTR lpCmdLine, // address of command line
UINT uCmdShow // window style for new application
);
 
delphi 里面就有word自动化控件啊, 用它就行了 
 
ShellExecute(0, 'open', '指定的WORD文件名', nil, nil, SW_SHOW);
要想控制WORD文档,则要用自动化。
 
谢谢各位老大:但是我出现了一个奇怪的问题。就是编译通过不了SHELLEXECUTE()这个函数
我肯定是没有写错,请问大侠,是什么原因呢
 
uses ShellAPI;
 
象xiaogu说的,要加上这个单元才行!
如果是用OLE的方式要加上comobj
 
后退
顶部