1、下载DsoFramer_KB311765_x86.exe

2、安装,默认路径安装C:\DsoFramer。

3、注册:开始菜单——》运行

  输入:regsvr32 C:\DsoFramer\dsoframer.ocx

4、附加组件,选择“COM组件”,浏览刚刚安装路径的dsoframer.ocx。

5、工具栏中多出了DSO Framer Control Object 控件,把它拖到界窗体上。

 

 1 private void button1_Click(object sender, EventArgs e)
 2 {
 3    OpenFileDialog openFileDialog1 = new OpenFileDialog();
 4    if (openFileDialog1.ShowDialog() == DialogResult.OK)
 5    {
 6        string Filename = openFileDialog1.FileName;//获取完整的路径
 7 
 8        if (Filename.Length != 0)
 9        {
10            this.axFramerControl1.Open(Filename);
11 
12            SendKeys.Send("{F5}");//虚拟调用"F5"键(幻灯片放映,只对ppt有效)
13         }
14     }
15 
16 }
View Code

相关文章: