我想在界面上加一个帮助选项,用来导出一个介绍此项目帮助文档,请问该怎么做呢?  
帮助文档用什么格式?word的可以吗?

解决方案 »

  1.   

    chm格式
    调用
    WinExec(PChar('hh.exe ' + ExtractFilePath(Application.ExeName) + 'Help.CHM'), SW_SHOWMAXIMIZED);
      

  2.   

    用word写好转成htm格式
    procedure TFrmMain.H1Click(Sender: TObject);
    var
        LChrFile:array [0..255] of Char;
        LStrTemp:String;
    begin
        LStrTemp:=ExtractFilePath(Application.ExeName);
        LStrTemp:=LStrTemp+'help.htm';
        StrPCopy(LChrFile,LStrTemp);
        ShellExecute(0,NIl,LChrFile,Nil,Nil,SW_NORMAL);
    end;