Combined 2 PPT [Access, Word Similarity] (from www.yesur.com)

xiaoxiao2021-03-06  41

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; use means; namespace cmd {///

/// Opppt summary description. /// public class opppt: system.Web.ui.page {private void page_load (object sender, system.eventargs e) {// Place user code here to initialize page 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 .ms.slides.insertfromfile ("c: //b.ppt", opres.slides.count, 1, -1);

//R

Opres.saves ("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 Form Designer Generated Code Override Protected Void OnNit (Eventargs E) {// // Codegen: This call is required for the ASP.NET Web Form Designer. // InitializeComponent (); base.onit (e);} ///

/// Designer Supports the required method - Do not use the code editor to modify the // / this method. /// private void initializecomponent () {this.load = new system.eventhandler (this.page_load);} #ENDREGON}}

转载请注明原文地址:https://www.9cbs.com/read-77292.html

New Post(0)