C#在窗体嵌套ppt播放时如何进行上下翻页操作

zf786115 2017-05-04 03:32:29
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();
// }
}
}



...全文
484 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
疯狂的石头666 2018-10-18
  • 打赏
  • 举报
回复
能发一下源码吗?
zf786115 2017-05-05
  • 打赏
  • 举报
回复
来几个大神吧
zf786115 2017-05-04
  • 打赏
  • 举报
回复
大神在哪里!

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧