using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
//using MetroFramework.Forms;
using Microsoft.Office.Core;
using Microsoft.Office.Interop.PowerPoint;
using System.Collections;
//using OFFICECORE = Microsoft.Office.Core;
//using POWERPOINT = Microsoft.Office.Interop.PowerPoint;
namespace 下载PPT文件
{
public partial class Form3 : Form
{
AxDSOFramer.AxFramerControl control = new AxDSOFramer.AxFramerControl();
Microsoft.Office.Interop.PowerPoint.Application pptApp = null;
Microsoft.Office.Interop.PowerPoint.Presentation pptPresSet = null;
Microsoft.Office.Interop.PowerPoint.SlideShowWindows pptSSWs;
Microsoft.Office.Interop.PowerPoint.SlideShowTransition pptSST;
Microsoft.Office.Interop.PowerPoint.SlideShowSettings pptSSS;
Microsoft.Office.Interop.PowerPoint.SlideRange pptSldRng;
bool bAssistantOn;
public Form3()
{
InitializeComponent();
}
private void Form3_Load(object sender, EventArgs e)
{
string filePath = @"E:\下载PPT文件\下载PPT文件\下载PPT文件\download\20170407144829_沪科九下《18.1感受信息》ppt课件.ppt";
control.Dock = DockStyle.Fill;
panel1.Controls.Add(control);
//control.Titlebar = false;
control.ActivationPolicy = DSOFramer.dsoActivationPolicy.dsoKeepUIActiveOnAppDeactive;
//control.Toolbars = false;
control.Menubar = false;
control.Open(filePath);
}
public void PPTUpDown()
{
}
/// <summary>
/// 上一页
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnUpPage_Click(object sender, EventArgs e)
{
// if (this.pptApp != null)
//{
// this.pptPresSet.SlideShowWindow.View.Previous();
// }
}
/// <summary>
/// 下一页
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnNextPage_Click(object sender, EventArgs e)
{
// if (this.pptApp != null)
// {
// this.pptPresSet.SlideShowWindow.View.Next();
// }
}
}