锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产v亚洲v天堂无码网站,亚洲国产精华液2020,国产国拍亚洲精品福利http://www.tkk7.com/ebecket/category/41085.html涓璺鏅垜涓璺蛋鐫,涓嶇澶氫箞鐤叉儷,鍥犱負涓璺殑椋庢櫙寰堢編....... zh-cnThu, 19 Nov 2009 21:06:46 GMTThu, 19 Nov 2009 21:06:46 GMT60JQuery瀹夎涓庢櫤鑳芥劅搴?/title><link>http://www.tkk7.com/ebecket/articles/302819.html</link><dc:creator>becket_zheng</dc:creator><author>becket_zheng</author><pubDate>Wed, 18 Nov 2009 09:21:00 GMT</pubDate><guid>http://www.tkk7.com/ebecket/articles/302819.html</guid><wfw:comment>http://www.tkk7.com/ebecket/comments/302819.html</wfw:comment><comments>http://www.tkk7.com/ebecket/articles/302819.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/ebecket/comments/commentRss/302819.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/ebecket/services/trackbacks/302819.html</trackback:ping><description><![CDATA[<h2 class="pageTitle"> </h2> <h2 class="pageTitle">http://weblogs.asp.net/scottgu/archive/2008/11/21/jquery-intellisense-in-vs-2008.aspx</h2> <h2 class="pageTitle">jQuery Intellisense in VS 2008 </h2> <div id="e8oq688" class="post"> <div id="ik08w0o" class="postsub"><font face="arial" size="2"> <p>Last month I blogged about <a target="_blank">how Microsoft is extending support for jQuery</a>.  Over the last few weeks we've been working with the jQuery team to add great jQuery intellisense support within Visual Studio 2008 and Visual Web Developer 2008 Express (which is free).  This is now available to download and use.</p> <h3>Steps to Enable jQuery Intellisense in VS 2008</h3> <p>To enable intellisense completion for jQuery within VS you'll want to follow three steps:</p> <p><u><strong>Step 1: Install VS 2008 SP1</strong></u></p> <p>VS 2008 SP1 adds richer JavaScript intellisense support to Visual Studio, and adds code completion support for a broad range of JavaScript libraries. </p> <p>You can download VS 2008 SP1 and Visual Web Developer 2008 Express SP1 <a target="_blank">here</a>.</p> <p><strong><u>Step 2: Install VS 2008 Patch KB958502 to Support "-vsdoc.js" Intellisense Files</u></strong></p> <p>Two weeks ago we shipped a patch that you can apply to VS 2008 SP1 and VWD 2008 Express SP1 that causes Visual Studio to check for the presence of an optional "-vsdoc.js" file when a JavaScript library is referenced, and if present to use this to drive the JavaScript intellisense engine.</p> <p>These annotated "-vsdoc.js" files can include XML comments that provide help documentation for JavaScript methods, as well as additional code intellisense hints for dynamic JavaScript signatures that cannot automatically be inferred.  You can learn more about this patch <a target="_blank">here</a>.  You can download it for free <a target="_blank">here</a>.</p> <p><strong><u>Step 3: Download the jQuery-vsdoc.js file</u></strong></p> <p>We've worked with the jQuery team to put together a jQuery-vsdoc.js file that provides help comments and support for JavaScript intellisense on chained jQuery selector methods.  You can download both jQuery and the jQuery-vsdoc file from the <a target="_blank">official download page</a> on the jQuery.com site:</p> <p><img alt="" src="http://www.scottgu.com/blogposts/jquerynov/step1.png" /> </p> <p>Save the jquery-vsdoc.js file next to your jquery.js file in your project (and make sure its naming prefix matches the jquery file name):</p> <p><img alt="" src="http://www.scottgu.com/blogposts/jquerynov/step2.png" /> </p> <p>You can then reference the standard jquery file with an html <script/> element like so:</p> <p><img alt="" src="http://www.scottgu.com/blogposts/jquerynov/step3.png" /> </p> <p>Or alternatively reference it using the <asp:scriptmanager/> control, or by adding a /// <reference/> comment at the top of a standalone .js file.  </p> <p>When you do this VS will now look for a -vsdoc.js file in the same directory as the script file you are referencing, and if found will use it for help and intellisense.  The annotated </p> <p>For example, we could use jQuery to make a JSON based get request, and get intellisense for the method (hanging off of $.):</p> <p><img alt="" src="http://www.scottgu.com/blogposts/jquerynov/step4.png" /> </p> <p>As well as help/intellisense for the $.getJSON() method's parameters:</p> <p><img alt="" src="http://www.scottgu.com/blogposts/jquerynov/step5.png" /> </p> <p>The intellisense will continue to work if you nest a callback function within the method call.  For example, we might want to iterate over each JSON object returned from the server:</p> <p><img alt="" src="http://www.scottgu.com/blogposts/jquerynov/step6.png" /> </p> <p>And for each of the items we could execute another nested callback function:</p> <p><img alt="" src="http://www.scottgu.com/blogposts/jquerynov/step7.png" /> </p> <p>We could use the each callback function to dynamically append a new image to a list (the image src attribute will point to the URL of the returned JSON media image):</p> <p><img alt="" src="http://www.scottgu.com/blogposts/jquerynov/step8.png" /> </p> <p>And on each dynamically created image we could wire-up a click event handler so that when it is pressed it will disappear via an animation:</p> <p><img alt="" src="http://www.scottgu.com/blogposts/jquerynov/step10.png" /> </p> <p>Notice how the jQuery intellisense works cleanly at each level of our code.  </p> <h3>JavaScript Intellisense Tips and Tricks</h3> <p>Jeff King from the Web Tools team <a target="_blank">wrote up a great post</a> earlier this week that answers a number of common questions about how JavaScript intellisense works with VS 2008.  I highly recommend reading it.</p> <p>One trick he talks about which I'll show here is a technique you can use when you want to have JavaScript intellisense work within user-controls/partials (.ascx files).  Often you don't want to include a JavaScript library <script src=""/> reference  within these files, and instead have this live on the master page or content page the user control is used within.  The problem of course when you do this is that by default VS has no way of knowing that this script is available within the user control - and so won't provide intellisense of it for you.</p> <p>One way you can enable this is by adding the <script src=""/> element to your user control, but then surround it with a server-side <% if %> block that always evaluates to false at runtime:</p> <p><img alt="" src="http://www.scottgu.com/blogposts/jquerynov/step11.png" /> </p> <p>At runtime ASP.NET will never render this script tag (since it is wrapped in an if block that is always false).  However, VS <em>will</em> evaluate the <script/> tag and provide intellisense for it within the user-control.  A useful technique to use for scenarios like the user control one.  Jeff has even more details in his <a target="_blank">FAQ post</a> as well as his <a target="_blank">original jQuery intellisense post</a>.  Rick Strahl also has a good post about using jQuery intellisense <a target="_blank">here</a>.</p> <h3>More Information</h3> <p>To learn more about jQuery, I recommend watching Stephen Walther's <a target="_blank">ASP.NET and jQuery</a> PDC talk. <a target="_blank">Click here</a> to download his code samples and powerpoint presentation.</p> <p>Rick Strahl also has a really nice <a >Introduction to jQuery</a> article that talks about using jQuery with ASP.NET.  Karl Seguin has two nice jQuery primer posts <a target="_blank">here</a> and <a target="_blank">here</a> that provide shorter overviews of some of the basics of how to use jQuery.  </p> <p>I also highly recommend the <a target="_blank">jQuery in Action</a> book.</p> <p>Hope this helps,</p> <p>Scott</font></p> </div> </div> <img src ="http://www.tkk7.com/ebecket/aggbug/302819.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/ebecket/" target="_blank">becket_zheng</a> 2009-11-18 17:21 <a href="http://www.tkk7.com/ebecket/articles/302819.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>c# Office鏂囦歡杞崲鎴怘tml鏍煎紡(灝哖PT杞崲鎴怘TML)http://www.tkk7.com/ebecket/articles/295283.htmlbecket_zhengbecket_zhengWed, 16 Sep 2009 04:43:00 GMThttp://www.tkk7.com/ebecket/articles/295283.htmlhttp://www.tkk7.com/ebecket/comments/295283.htmlhttp://www.tkk7.com/ebecket/articles/295283.html#Feedback0http://www.tkk7.com/ebecket/comments/commentRss/295283.htmlhttp://www.tkk7.com/ebecket/services/trackbacks/295283.html

c# 灝哖PT杞崲鎴怘TML

榪欏彧鏄竴涓皬紼嬪簭錛屽氨鏄皢ppt杞崲鎴恏tml,鏂規硶寰堝錛屼負浜嗕互鍚庡鐢紝鍦ㄦ璁板綍涓涓嬶紝涔熷拰澶у鍒嗕韓 婧愮爜濡備笅錛?using System; using System.Collections.Generic; using System.Text; using System.IO; using PPT = Microsoft.Office.Interop.PowerPoint; using

榪欏彧鏄竴涓皬紼嬪簭錛屽氨鏄皢ppt杞崲鎴恏tml,鏂規硶寰堝錛屼負浜嗕互鍚庡鐢紝鍦ㄦ璁板綍涓涓嬶紝涔熷拰澶у鍒嗕韓
婧愮爜濡備笅錛?br />  

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using PPT = Microsoft.Office.Interop.PowerPoint;
using System.Reflection;

namespace WritePptDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            string path;         //鏂囦歡璺緞鍙橀噺

            PPT.Application pptApp;     //Excel搴旂敤紼嬪簭鍙橀噺
            PPT.Presentation pptDoc;     //Excel鏂囨。鍙橀噺

            PPT.Presentation pptDoctmp;

           

            path = @"C:\MyPPT.ppt";      //璺緞
            pptApp = new PPT.ApplicationClass();   //鍒濆鍖?/p>

            //濡傛灉宸插瓨鍦紝鍒欏垹闄?br />             if (File.Exists((string)path))
            {
                File.Delete((string)path);
            }

            //鐢變簬浣跨敤鐨勬槸COM搴擄紝鍥犳鏈夎澶氬彉閲忛渶瑕佺敤Nothing浠f浛
            Object Nothing = Missing.Value;
            pptDoc = pptApp.Presentations.Add(Microsoft.Office.Core.MsoTriState.msoFalse);
            pptDoc.Slides.Add(1, Microsoft.Office.Interop.PowerPoint.PpSlideLayout.ppLayoutText);

            string text = "紺轟緥鏂囨湰";

            foreach (PPT.Slide slide in pptDoc.Slides)
            {
                foreach (PPT.Shape shape in slide.Shapes)
                {
                    shape.TextFrame.TextRange.InsertAfter(text);
                }
            }


            //WdSaveFormat涓篍xcel鏂囨。鐨勪繚瀛樻牸寮?br />             PPT.PpSaveAsFileType format = PPT.PpSaveAsFileType.ppSaveAsDefault;

            //灝唀xcelDoc鏂囨。瀵硅薄鐨勫唴瀹逛繚瀛樹負XLSX鏂囨。
            pptDoc.SaveAs(path, format, Microsoft.Office.Core.MsoTriState.msoFalse);

            //鍏抽棴excelDoc鏂囨。瀵硅薄
            pptDoc.Close();

            //鍏抽棴excelApp緇勪歡瀵硅薄
            pptApp.Quit();

            Console.WriteLine(path + " 鍒涘緩瀹屾瘯錛?);

            Console.ReadLine();


            string pathHtml = @"c:\MyPPT.html";

            PPT.Application pa = new PPT.ApplicationClass();

            pptDoctmp = pa.Presentations.Open(path, Microsoft.Office.Core.MsoTriState.msoTrue, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse);
            PPT.PpSaveAsFileType formatTmp = PPT.PpSaveAsFileType.ppSaveAsHTML;
            pptDoctmp.SaveAs(pathHtml, formatTmp, Microsoft.Office.Core.MsoTriState.msoFalse);
            pptDoctmp.Close();
            pa.Quit();
            Console.WriteLine(pathHtml + " 鍒涘緩瀹屾瘯錛?);
        }
    }
}


浠ヤ笂紼嬪簭鏄嬌鐢–# 鍏堝垱寤轟竴涓猵pt 鏂囦歡騫跺悜閲岄潰鍐欏叆浜嗘枃瀛楋紝鐒跺悗鍐嶆妸姝pt 杞崲鎴恏tml  ,瀵逛簬涓婇潰紼嬪簭闇瑕佽鏄庣殑鍏跺疄灝辨槸
寮曠敤dll鐨勯棶棰橈紝 鍦ㄩ」鐩腑娣誨姞寮曠敤錛屽湪com 緇勪歡涓夋嫨 microsoft powerpoint 11.0 object library 錛岃屽鏋滀綘鐨勭數鑴戞病鏈夊畨瑁?office 2003 鏄笉浼氭湁榪欎釜鐨勶紝鑰屽鏋滃畨瑁呯殑鏄痮ffice 2007 鍒欐槸microsoft powerpoint 12.0 object library銆傝屼笖鍗充嬌浣犲紩鐢ㄦ垚鍔熷悗錛岃繕鏄細緙栬瘧涓嶉氳繃錛屾槸鍥犱負灝戝畨瑁呬簡 office PIA  ,鍦ㄥ畨瑁卭ffice 鏃訛紝濡傛灉浣犳槸閫夋嫨鐨勫吀鍨嬪畨瑁呮槸涓嶄細瀹夎榪欎釜鐨勶紝鍥犱負榪欎釜鍙拡瀵瑰紑鍙戜漢鍛樻墠浼氱敤鍒般傚彲浠ュ埌緗戜笂涓嬭澆涓涓?office PIA 瀹夎涓嬪氨ok浜?br />
----------------------------------Office鏂囦歡杞崲鎴怘tml鏍煎紡---------------------------------------------------------------------------------------------------------------------------------------------------------



   瀵瑰簲        using Microsoft.Office.Core;
                瀵瑰簲        using Microsoft.Office.Interop.PowerPoint;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.IO;
using System.Text.RegularExpressions;
using Nd.Webs;
using Aspose.Cells;
using Aspose.Words;
using ND.CommonHelper;
using Microsoft.Office.Interop.PowerPoint;
using Microsoft.Office.Core;

namespace Api.Note.Base
{
    #region Office鏂囦歡杞崲鎴怘tml鏍煎紡
    class OfficeHtmlBo
    {
        #region InsertHeadHtml
        /// <summary>
        /// InsertHeadHtml
        /// </summary>
        /// <param name="WordFilePath">InsertHeadHtml</param>
        private string InsertHeadHtml(string strHtml, string realPath)
        {
            int index = strHtml.IndexOf("<body");
            strHtml = strHtml.Insert(index, "<div style='height:60px;font-size:14px;background-color:#e0ecf9;margin:0px 0px 12px 0px;padding:14px 4px 12px 12px;line-height:24px;height:1%;'>浠ヤ笅鏄鏂囨。鐨凥TML棰勮鏁堟灉銆?lt;br/><span>鐢變簬鏄綉欏墊彁鍙栨樉紺簑ord涓殑鍐呭錛屾湁鍙兘閮ㄥ垎鏄劇ず涓庢簮鏂囨。涓湁宸紓錛屽鎯蟲煡鐪嬫洿鍑嗙‘鐨勪俊鎭紝</span>鎮ㄥ彲浠ョ偣鍑?amp;nbsp;<a style='color:6699FF;text-decoration:underline;' href='/Lib/UdControls/Download.aspx?action=Download&appFormCode=" + HttpContext.Current.Request.QueryString["appFormCode"].ToString() + "&path=" + HttpContext.Current.Request.QueryString["path"].ToString() + "&encrypt=" + HttpContext.Current.Request.QueryString["encrypt"].ToString() + "'><b>涓嬭澆鍘熷闄勪歡</b></a></div>");

            Regex reg = new Regex(@"(?<start><img[^>]+?src="")(?<src>[^""]+?)(?<end>""[^>]+?>)");
            strHtml = reg.Replace(strHtml, delegate(Match m)
            {
                return string.Format("{0}{1}{2}{3}",
                    m.Groups["start"].Value,
                    realPath,
                    m.Groups["src"].Value,
                    m.Groups["end"].Value
                    );
            });

            return strHtml;
        }
        #endregion

        #region GetLeftStr
        /// <summary>
        /// 鎴彇瀛楃涓插乏杈規寚瀹氶暱搴?br />         /// </summary>
        /// <param name="str"></param>
        /// <param name="length"></param>
        /// <returns></returns>
        public string GetLeftStr(string str, int length)
        {
            length = length * 2;
            string tempStr = "";
            int i = 0;
            foreach (char c in str)
            {
                tempStr += c.ToString();
                if (((int)c >= 33) && ((int)c <= 126))
                {
                    //瀛楁瘝鍜岀鍙峰師鏍蜂繚鐣?
                    i += 1;
                }
                else
                {
                    i += 2;
                }
                if (i >= length)
                {
                    return tempStr;
                }
            }
            return str;
        }


        #endregion

        #region 灝哤ord鏂囨。杞崲鎴怘TML鏍煎紡
        /// <summary>
        /// 灝哤ord鏂囨。杞崲鎴怘TML鏍煎紡
        /// </summary>
        /// <param name="WordFilePath">Word鏂囨。鏍煎紡</param>
        private void WordToHtmlFile(string WordFilePath)
        {
            try
            {
                // 鎸囧畾鍘熸枃浠跺拰鐩爣鏂囦歡
                string realPath = WordFilePath.Substring(0, WordFilePath.LastIndexOf("/") + 1);
                WordFilePath = System.Web.HttpContext.Current.Server.MapPath(WordFilePath);
                object target = WordFilePath.Substring(0, WordFilePath.LastIndexOf(".")) + ".html";
                //string realPath = WordFilePath.Substring(0, WordFilePath.LastIndexOf(".")) + ".html";

                if (!File.Exists(target.ToString()))
                {
                    Document doc = new Document(WordFilePath);
                    doc.Save(target.ToString(), SaveFormat.Html);
                }

                StreamReader sr = new StreamReader(target.ToString(), Encoding.Default);
                string strHtml = sr.ReadToEnd();

                strHtml = InsertHeadHtml(strHtml, realPath);
                HttpContext.Current.Response.Write(strHtml);

                sr.Close();
            }
            catch (Exception ex)
            {
                //璁板綍寮傚父
                LogEntry logEntry = new LogEntry();
                logEntry.Message = ex.Message;
                logEntry.Title = "---->灝哤ord鏂囨。杞崲鎴怘TML鏍煎紡寮傚父[WordToHtmlFile]";
                logEntry.TimeStamp = DateTime.Now;
                logEntry.LogEntryType = LogEntryType.Error;
                logEntry.LogCatalog = LogCatalog.ExceptionLog;
                logEntry.StackTrace = ex.StackTrace;
                LogPosition logPosition = LogPosition.FileLog;
                string positionParameter = SysConfig.ToString(SysConfig.GetAppSetting("LogPath"));
                SysLogger.Write(logEntry, logPosition, positionParameter);
            }
        }
        #endregion

        #region 灝咵xcel鏂囦歡杞崲鎴怘TML鏍煎紡
        /// <summary>
        /// 灝咵xcel鏂囦歡杞崲鎴怘TML鏍煎紡
        /// </summary>
        /// <param name="ExcelFilePath">Excel鏂囦歡璺緞</param>
        private void ExcelToHtmlFile(string ExcelFilePath)
        {
            try
            {
                string realPath = ExcelFilePath.Substring(0, ExcelFilePath.LastIndexOf("/") + 1);
                int index = ExcelFilePath.LastIndexOf("/");
                string fileName;
                if (ExcelFilePath.IndexOf(":") != -1)
                {
                    fileName = ExcelFilePath.Split(new char[] { ':' })[0].ToString();
                    fileName = GetLeftStr(fileName.Substring(0, fileName.LastIndexOf(".")), 10) + fileName.Substring(fileName.LastIndexOf("."));
                    fileName = HttpUtility.UrlEncode(fileName, Encoding.UTF8);
                }
                else
                {
                    fileName = ExcelFilePath.Substring(index + 1, ExcelFilePath.Length - index - 1);
                    fileName = GetLeftStr(fileName.Substring(0, fileName.LastIndexOf(".")), 10) + fileName.Substring(fileName.LastIndexOf("."));
                    //緙栫爜
                    fileName = HttpUtility.UrlEncode(fileName, Encoding.UTF8);
                }
                fileName = fileName.Substring(0, fileName.LastIndexOf("."));
                ExcelFilePath = System.Web.HttpContext.Current.Server.MapPath(ExcelFilePath);
                //鐩爣html鏂囦歡璺緞
                object target = ExcelFilePath.Substring(0, ExcelFilePath.LastIndexOf(".")) + ".html";

                string target2 = ExcelFilePath.Substring(0, ExcelFilePath.LastIndexOf("\\")) + "\\" + fileName + "_files\\sheet001.htm";
                if (!File.Exists(target.ToString()))
                {
                    //涓轟簡淇濋櫓,鍙鏂瑰紡鎵撳紑
                    //object readOnly = true;
                    //// 鎸囧畾鍙﹀瓨涓烘牸寮?html)
                    //object format = Microsoft.Office.Interop.Excel.XlFileFormat.xlHtml;

                    ////鎵撳紑Excel鏂囦歡
                    //oBook = excelApp.Workbooks.Open(ExcelFilePath, Unknown, readOnly,
                    //    Unknown, Unknown, Unknown, Unknown, Unknown, Unknown,
                    //    Unknown, Unknown, Unknown, Unknown, Unknown, Unknown);

                    //// 杞崲鏍煎紡
                    //oBook.SaveAs(target, format, Unknown, Unknown, Unknown, Unknown,
                    //     Microsoft.Office.Interop.Excel.XlSaveAsAccessMode.xlNoChange,
                    //     Unknown, Unknown, Unknown, Unknown, Unknown);

                    Workbook wBook = new Workbook();
                    wBook.Open(ExcelFilePath);
                    wBook.Save(target.ToString(), FileFormatType.Html);
                }

                StreamReader sr = new StreamReader(target2.ToString(), Encoding.Default);
                string strHtml = sr.ReadToEnd();

                strHtml = InsertHeadHtml(strHtml, realPath);

                strHtml = strHtml.Replace("window.location.replace", "");
                strHtml = strHtml.Replace("filelist.xml", realPath + "/" + fileName + "_files/filelist.xml");
                strHtml = strHtml.Replace("stylesheet.css", realPath + "/" + fileName + "_files/stylesheet.css");
                HttpContext.Current.Response.Write(strHtml);

                sr.Close();
            }
            catch (Exception ex)
            {
                //璁板綍寮傚父
                LogEntry logEntry = new LogEntry();
                logEntry.Message = ex.Message;
                logEntry.Title = "---->灝咵xcel鏂囦歡杞崲鎴怘TML鏍煎紡[ExcelToHtmlFile]";
                logEntry.TimeStamp = DateTime.Now;
                logEntry.LogEntryType = LogEntryType.Error;
                logEntry.LogCatalog = LogCatalog.ExceptionLog;
                logEntry.StackTrace = ex.StackTrace;
                LogPosition logPosition = LogPosition.FileLog;
                string positionParameter = SysConfig.ToString(SysConfig.GetAppSetting("LogPath"));
                SysLogger.Write(logEntry, logPosition, positionParameter);
            }
        }
        #endregion

        #region 灝哖PT鏂囦歡杞崲鎴怘TML鏍煎紡
        /// <summary>
        /// 灝哖PT鏂囦歡杞崲鎴怘TML鏍煎紡
        /// </summary>
        /// <param name="PptFilePath">PPT鏂囦歡璺緞</param>
        private void PptToHtmlFile(string PptFilePath)
        {
            ApplicationClass ac = new ApplicationClass();
            Presentation pptFile = null;
            try
            {
                string realPath = PptFilePath.Substring(0, PptFilePath.LastIndexOf(".")) + ".html";
                PptFilePath = System.Web.HttpContext.Current.Server.MapPath(PptFilePath);
                //鑾峰緱html鏂囦歡鍚?br />                 object target = PptFilePath.Substring(0, PptFilePath.LastIndexOf(".")) + ".html";

                if (!File.Exists(target.ToString()))
                {
                    if (PptFilePath.Contains(".pptx"))
                    {
                        pptFile = ac.Presentations.Open2007(PptFilePath, MsoTriState.msoCTrue, MsoTriState.msoCTrue, MsoTriState.msoFalse, MsoTriState.msoFalse);
                        pptFile.SaveAs(target.ToString(), PpSaveAsFileType.ppSaveAsHTML, MsoTriState.msoCTrue);
                    }
                    else if (PptFilePath.Contains(".ppt"))
                    {
                        pptFile = ac.Presentations.Open(PptFilePath, MsoTriState.msoCTrue, MsoTriState.msoCTrue, MsoTriState.msoFalse);
                        pptFile.SaveAs(target.ToString(), PpSaveAsFileType.ppSaveAsHTML, MsoTriState.msoCTrue);
                    }
                }
                //StreamReader sr = new StreamReader(target.ToString(), Encoding.Default);
                //string strHtml = sr.ReadToEnd();
                //Response.Write(strHtml);
                HttpContext.Current.Response.Redirect(realPath);
            }
            finally
            {
                if (pptFile != null)
                {
                    pptFile.Close();
                }
                ac.Quit();
                GC.Collect();
            }
        }
        #endregion
    }
    #endregion

}



 



becket_zheng 2009-09-16 12:43 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 久久亚洲综合色一区二区三区| 免费国产一级特黄久久| 亚洲AV无码不卡无码| 成全视成人免费观看在线看| 免费在线观看视频a| 四虎影视久久久免费观看| 亚洲国产一区视频| 美女黄色免费网站| 亚洲一级Av无码毛片久久精品| 色爽黄1000部免费软件下载| 一级毛片直播亚洲| 国产久爱免费精品视频| 国产精品亚洲а∨无码播放| a毛片免费全部在线播放** | 日本免费电影一区| 猫咪www免费人成网站| 亚洲国产一区明星换脸| 人妻在线日韩免费视频| 亚洲综合一区二区精品导航| 亚洲免费在线视频观看| 伊人久久亚洲综合影院首页| 午夜dj在线观看免费视频| 特级av毛片免费观看| 国产亚洲综合成人91精品| 久久国产免费一区| 亚洲一卡一卡二新区无人区| 四虎永久成人免费| 免费在线观影网站| 亚洲国产精品综合久久2007| 成人爱做日本视频免费| 91精品全国免费观看青青| 综合自拍亚洲综合图不卡区| 大香人蕉免费视频75| 国产精品免费久久久久久久久| 香蕉视频在线观看亚洲| 久久不见久久见免费影院| 一级毛片视频免费观看| 亚洲美女视频网站| 一区二区三区亚洲视频| 国产好大好硬好爽免费不卡| 亚洲熟妇成人精品一区|