我想用编程的方法打开pdf文件。
就向用ole的方法打开word一样。
怎么实现?

解决方案 »

  1.   

    在D:\Program Files\Adobe\Acrobat 5.0\Reader\ActiveX中有pdf.ocx,加入你的Delphi
      

  2.   

    我想用组件。
    想用ole方法。
    怎么用?
      

  3.   

    ActiveX加入delphi的方法:
    菜单:component->import ActiveX Control->找到想加入的控件->install
      

  4.   

    uses shellapi;HINSTANCE ShellExecute(    HWND hwnd, // handle to parent window
        LPCTSTR lpOperation, // pointer to string that specifies operation to perform
        LPCTSTR lpFile, // pointer to filename or folder name string
        LPCTSTR lpParameters, // pointer to string that specifies executable-file parameters 
        LPCTSTR lpDirectory, // pointer to string that specifies default directory
        INT nShowCmd  // whether file is shown when opened
       );
    shellexcute(,,,,): api函数即可直接打开pdf文件,当然,要求必须装了pdf阅读器;
      

  5.   

    TO( qixin000(小齐) ):   你说的是废话。   PDF格式是一种矢量图格式的文件,要么使用ActiveX控件 要么你研究PDF文件格式 自行编写代码