合并2个PPT【Access,word同理】(来自www.yesur.com)
来源:互联网 发布:淘宝网店女装推广方案 编辑:程序博客网 时间:2024/05/16 19:51
using System;
using System.Xml;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using PowerPoint;
using Microsoft.Office;
using Microsoft.Office.Core;
namespace cmd
{
/// <summary>
/// opPPT 的摘要说明。
/// </summary>
public class opPPT : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
PowerPoint.ApplicationClass oPP = new PowerPoint.ApplicationClass();
oPP.Visible = MsoTriState.msoTrue;
PowerPoint.Presentations oPresSet = oPP.Presentations;
PowerPoint._Presentation oPres = oPresSet.Open("c://a.ppt",MsoTriState.msoFalse, MsoTriState.msoFalse,MsoTriState.msoTrue);
oPres.Slides.InsertFromFile("c://b.ppt",oPres.Slides.Count,1,-1);
// Run
oPres.SaveAs("c://yesur.ppt",PowerPoint.PpSaveAsFileType.ppSaveAsDefault,MsoTriState.msoCTrue);
// Quit PowerPoint and clean up.
oPres.Close();
System.Runtime.InteropServices.Marshal.ReleaseComObject (oPres);
oPres = null;
System.Runtime.InteropServices.Marshal.ReleaseComObject (oPresSet);
oPresSet = null;
oPP.Quit();
System.Runtime.InteropServices.Marshal.ReleaseComObject (oPP);
oPP = null;
}
#region Web 窗体设计器生成的代码
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
}
}
- 合并2个PPT【Access,word同理】(来自www.yesur.com)
- xmlDoc里面插入xml以及相关举例(来自www.yesur.com)
- Access的密码破解ccrun原创,来自C++ Builder 研究 http://www.ccrun.com
- 连接access数据库-----来自一个不错的网站:http://www.connectionstrings.com/
- 计算机网络笔试模拟试卷(2)(来自“十万个为什么”电脑学习网 http://www.why100000.com)
- 计算机通信模拟试题一(来自“十万个为什么”电脑学习网http://www.why100000.com)
- 计算机通信模拟试题二(来自“十万个为什么”电脑学习网http://www.why100000.com)
- 合并多个PPT文件
- c++优先级(来自http://www.cppreference.com)
- 计算机网络笔试模拟试卷(1)(来自“十万个为什么”电脑学习网http://www.why100000.com)
- 计算机网络笔试模拟试卷(3)(来自“十万个为什么”电脑学习网http://www.why100000.com)
- 合并多个word文件
- 合并多个Word文档
- 合并多个Word文档
- 来自:www.hoopchina.com 作者:儿童节 《雄心一万丈》
- Linux指令大全(来自www.ChinaJavaWorld.com)
- 通过程序自定义纸张[方法来自www.codeproject.com]
- 转:3NF——来自www.itisedu.com
- 违反同一律的诡辩术
- 违反充足理由律的诡辩术
- 归纳推理中的诡辩术
- 等待的日子
- xmlDoc里面插入xml以及相关举例(来自www.yesur.com)
- 合并2个PPT【Access,word同理】(来自www.yesur.com)
- 在SQL中启用全文检索功能
- 简单链表
- 在ASP+ACCESS中存入图片格式文件
- Merry Christmas
- eclipse3.0使用技巧
- BMP / JPG 檔縮放到你指定的大小及品質的 JPG 格式
- Java的中文编程与配置心得 [huxf]
- 用ADO控件存取SQL Server数据库图片