怎么在winform程序里加入看pdf图片的功能

解决方案 »

  1.   

    坛子里搜“pdf”,肯定能找你要你结果。
      

  2.   

    你本机做了Adobe Reader后 
    它会在你本机注册个COM+
    你做程序时
    找个那个COM+
    添加一个引用
    里面有个控件
    可以看PDF
    我以前用过
    但是我忘记COM+的名字了
    你得自己找找了
      

  3.   

    调用adobe的activex控件
    Steps to create the C# version
    1. Create a windows form application by using VS2. Make the Acrobat control available in the toolbox of VS
    Tools->Add/Remove Toolbox Items: turn on "Adobe Acrobat 7.0 Browser Document" in COM Components tab. You will see it in the Toolbox's General tab.3. Drag this control to the form. you get:
    private AxAcroPDFLib.AxAcroPDF axAcroPDF1;4. Load a pdf file and make it show up.
    axAcroPDF1.LoadFile("mypdf.pdf");
    axAcroPDF1.Show();
    5. Compile and run, you will see the document showing up inside of the control.Here is the code piece.
    public class Form1 : System.Windows.Forms.Form
    {
    private AxAcroPDFLib.AxAcroPDF axAcroPDF1;
    /// 
    /// Required designer variable.
    /// 
    private System.ComponentModel.Container components = null;public Form1()
    {
    //
    // Required for Windows Form Designer support
    //
    InitializeComponent();axAcroPDF1.LoadFile("mypdf.pdf");
    axAcroPDF1.Show();
    }