http://www.webshu.net/jiaocheng/programme/ASPNET/200804/6499.html

<% if request("infoid")<>"" then set rs=conn.execute("select * from nproduct where id="&request("infoid")) if not (rs.eof and rs.bof) then proname=rs("proname") content=rs("proinfo") end
if rs.close set rs=nothing end if %>

最近由于工作需要,做了一些关于c#操作word文档方面的工作.主要是对word中表格的操作,以下是部分代码,关于操作不规则表格的.

using System;

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 System.Configuration;

using System.IO;

using System.Reflection;

using System.Runtime.InteropServices ;

using System.Threading;



public void MakeMyTable(DataTable DT,string strFilePath)

  {

   

   string strEnd   = this.txtEnd.Text.Trim().ToString();

   string strStart = this.txtStart.Text.Trim().ToString();

//生成文档分页中的起始和终止页

   string strSign = "("+strStart + "-" + strEnd + ")";

//杀掉所有word进程以保证速度

   //KillWordProcess();

object Nothing = System.Reflection.Missing.Value; 

   object missing = System.Reflection.Missing.Value; 

   object filename= strFilePath;

Word.Application wordApp=new Word.ApplicationClass(); 

   Word.Document wordDoc=wordApp.Documents.Add(ref Nothing,ref Nothing,ref Nothing,ref Nothing);

try

   {

    //生成过程中屏蔽返回按扭,不允许中途停止

    Button2.Enabled = false;

    #region 生成文档

    //设置文档宽度

    wordApp.Selection.PageSetup.LeftMargin  = wordApp.CentimetersToPoints(float.Parse("2"));

    wordApp.ActiveWindow.ActivePane.HorizontalPercentScrolled = 11 ;

    wordApp.Selection.PageSetup.RightMargin = wordApp.CentimetersToPoints(float.Parse("2"));

Object start = Type.Missing;

    Object end = Type.Missing;

    Object unit = Type.Missing;

    Object count = Type.Missing;

    wordDoc.Range(ref start, ref end).Delete(ref unit, ref count);

object rng = Type.Missing;

    string strInfo = this.txtNameCh.Text.ToString()+"明细表"+strSign+"\r\n";

    start = 0;

    end = 0;

    wordDoc.Range(ref start, ref end).InsertBefore(strInfo);

    wordDoc.Range(ref start, ref end).Font.Name = "Verdana"; 

    wordDoc.Range(ref start, ref end).Font.Size = 20;

    wordDoc.Range(ref start, ref end).ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter;

start = 8;

    end = strInfo.Length;

    wordDoc.Range(ref start, ref end).InsertParagraphAfter();//插入回车

if(DT.Rows.Count>0)

    {

     //存在数据项

     //添加一个表格

     object missingValue = Type.Missing; 

     object location = strInfo.Length; //注:若location超过已有字符的长度将会出错。一定要比"明细表"串多一个字符

     Word.Range rng2 = wordDoc.Range(ref location, ref location);

wordDoc.Tables.Add(rng2, 13, 6, ref missingValue, ref missingValue); 

     wordDoc.Tables.Item(1).Rows.HeightRule = Word.WdRowHeightRule.wdRowHeightAtLeast;

     wordDoc.Tables.Item(1).Rows.Height = wordApp.CentimetersToPoints(float.Parse("0.8"));

     wordDoc.Tables.Item(1).Range.Font.Size = 10;

     wordDoc.Tables.Item(1).Range.Font.Name = "宋体";

     wordDoc.Tables.Item(1).Range.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter;

     wordDoc.Tables.Item(1).Range.Cells.VerticalAlignment = Word.WdCellVerticalAlignment.wdCellAlignVerticalCenter;

     //设置表格样式

     wordDoc.Tables.Item(1).Borders.Item(Word.WdBorderType.wdBorderLeft).LineStyle = Word.WdLineStyle.wdLineStyleSingle;

     wordDoc.Tables.Item(1).Borders.Item(Word.WdBorderType.wdBorderLeft).LineWidth = Word.WdLineWidth.wdLineWidth050pt;

     wordDoc.Tables.Item(1).Borders.Item(Word.WdBorderType.wdBorderLeft).Color = Word.WdColor.wdColorAutomatic;

     

     wordDoc.Tables.Item(1).Borders.Item(Word.WdBorderType.wdBorderTop).LineStyle = Word.WdLineStyle.wdLineStyleSingle;

     wordDoc.Tables.Item(1).Borders.Item(Word.WdBorderType.wdBorderTop).LineWidth = Word.WdLineWidth.wdLineWidth050pt;

     wordDoc.Tables.Item(1).Borders.Item(Word.WdBorderType.wdBorderTop).Color = Word.WdColor.wdColorAutomatic;

wordDoc.Tables.Item(1).Borders.Item(Word.WdBorderType.wdBorderBottom).LineStyle = Word.WdLineStyle.wdLineStyleSingle;

     wordDoc.Tables.Item(1).Borders.Item(Word.WdBorderType.wdBorderBottom).LineWidth = Word.WdLineWidth.wdLineWidth050pt;

     wordDoc.Tables.Item(1).Borders.Item(Word.WdBorderType.wdBorderBottom).Color = Word.WdColor.wdColorAutomatic;

wordDoc.Tables.Item(1).Borders.Item(Word.WdBorderType.wdBorderHorizontal).LineStyle = Word.WdLineStyle.wdLineStyleSingle;

     wordDoc.Tables.Item(1).Borders.Item(Word.WdBorderType.wdBorderHorizontal).LineWidth = Word.WdLineWidth.wdLineWidth050pt;

     wordDoc.Tables.Item(1).Borders.Item(Word.WdBorderType.wdBorderHorizontal).Color = Word.WdColor.wdColorAutomatic;

wordDoc.Tables.Item(1).Borders.Item(Word.WdBorderType.wdBorderVertical).LineStyle = Word.WdLineStyle.wdLineStyleSingle;

     wordDoc.Tables.Item(1).Borders.Item(Word.WdBorderType.wdBorderVertical).LineWidth = Word.WdLineWidth.wdLineWidth050pt;

     wordDoc.Tables.Item(1).Borders.Item(Word.WdBorderType.wdBorderVertical).Color = Word.WdColor.wdColorAutomatic;

     

     wordDoc.Tables.Item(1).Borders.Item(Word.WdBorderType.wdBorderRight).LineStyle = Word.WdLineStyle.wdLineStyleSingle;

     wordDoc.Tables.Item(1).Borders.Item(Word.WdBorderType.wdBorderRight).LineWidth = Word.WdLineWidth.wdLineWidth050pt;

     wordDoc.Tables.Item(1).Borders.Item(Word.WdBorderType.wdBorderRight).Color = Word.WdColor.wdColorAutomatic;

//     wordDoc.Tables.Item(k).Borders.Item(Word.WdBorderType.wdBorderDiagonalDown).LineStyle = Word.WdLineStyle.wdLineStyleSingle;

     //     wordDoc.Tables.Item(k).Borders.Item(Word.WdBorderType.wdBorderDiagonalDown).LineWidth = Word.WdLineWidth.wdLineWidth050pt;

     //     wordDoc.Tables.Item(k).Borders.Item(Word.WdBorderType.wdBorderDiagonalDown).Color = Word.WdColor.wdColorAutomatic;

     //第一行显示

     wordDoc.Tables.Item(1).Cell(1,2).Merge(wordDoc.Tables.Item(1).Cell(1,3));

     wordDoc.Tables.Item(1).Cell(1,4).Merge(wordDoc.Tables.Item(1).Cell(1,5));

//第二行显示

     wordDoc.Tables.Item(1).Cell(2,5).Merge(wordDoc.Tables.Item(1).Cell(2,6));

     wordDoc.Tables.Item(1).Cell(1,4).Merge(wordDoc.Tables.Item(1).Cell(2,5));

#region 插入数据行

     wordDoc.Tables.Item(1).Cell(1, 1).Range.Text = "cell11"; 

     //wordDoc.Tables.Item(k).Cell(1, 2).Range.Text = DT.Rows[i]["cell11"].ToString();

////******************

     wordDoc.Tables.Item(1).Cell(1, 3).Range.Text = "cell13"; 

     //wordDoc.Tables.Item(k).Cell(1, 4).Range.Text = DT.Rows[i]["cell13"].ToString();

////******************

     wordDoc.Tables.Item(1).Cell(2, 1).Range.Text = "cell21"; 

     //wordDoc.Tables.Item(k).Cell(2, 2).Range.Text = DT.Rows[i]["cell21"].ToString();

////******************

     wordDoc.Tables.Item(1).Cell(2, 3).Range.Text = "cell23"; 

     //wordDoc.Tables.Item(k).Cell(2, 4).Range.Text = DT.Rows[i]["cell23"].ToString();

#endregion

#region 第三行显示

     wordDoc.Tables.Item(1).Cell(3,2).Merge(wordDoc.Tables.Item(1).Cell(3,3));

     wordDoc.Tables.Item(1).Cell(3,2).Merge(wordDoc.Tables.Item(1).Cell(3,3));

////******************

     wordDoc.Tables.Item(1).Cell(3, 1).Range.Text = "cell31";

////******************

     wordDoc.Tables.Item(1).Cell(3, 3).Range.Text = "cell33";

#endregion

#region 第五行显示

     wordDoc.Tables.Item(1).Cell(5,2).Merge(wordDoc.Tables.Item(1).Cell(5,3));

     wordDoc.Tables.Item(1).Cell(5,2).Merge(wordDoc.Tables.Item(1).Cell(5,3));

     wordDoc.Tables.Item(1).Cell(5,2).Merge(wordDoc.Tables.Item(1).Cell(5,3));

     wordDoc.Tables.Item(1).Cell(5,2).Merge(wordDoc.Tables.Item(1).Cell(5,3));

     #endregion

#region  第四行显示

////******************

     wordDoc.Tables.Item(1).Cell(4, 1).Range.Text = "cell41";

////******************

     wordDoc.Tables.Item(1).Cell(4, 3).Range.Text = "cell43";

////******************

     wordDoc.Tables.Item(1).Cell(4, 5).Range.Text = "cell45"; 

     

     #endregion

#region 第六行显示

     wordDoc.Tables.Item(1).Cell(6,2).Merge(wordDoc.Tables.Item(1).Cell(6,3));

     wordDoc.Tables.Item(1).Cell(6,2).Merge(wordDoc.Tables.Item(1).Cell(6,3));

     wordDoc.Tables.Item(1).Cell(6,2).Merge(wordDoc.Tables.Item(1).Cell(6,3));

     wordDoc.Tables.Item(1).Cell(6,2).Merge(wordDoc.Tables.Item(1).Cell(6,3));

////******************

     wordDoc.Tables.Item(1).Cell(5, 1).Range.Text = "cell51";

     

     wordDoc.Tables.Item(1).Cell(5, 2).Range.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft;

////******************

     wordDoc.Tables.Item(1).Cell(6, 1).Range.Text = "cdll61";

     

     wordDoc.Tables.Item(1).Cell(6, 2).Range.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft;

     #endregion

#region 第七行显示

     wordDoc.Tables.Item(1).Cell(7,2).Merge(wordDoc.Tables.Item(1).Cell(7,3));

     wordDoc.Tables.Item(1).Cell(7,2).Merge(wordDoc.Tables.Item(1).Cell(7,3));

     wordDoc.Tables.Item(1).Cell(7,2).Merge(wordDoc.Tables.Item(1).Cell(7,3));

     wordDoc.Tables.Item(1).Cell(7,2).Merge(wordDoc.Tables.Item(1).Cell(7,3));

////******************

     wordDoc.Tables.Item(1).Cell(7, 1).Range.Text = "cell71";

     

     wordDoc.Tables.Item(1).Cell(7, 2).Range.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft;

     #endregion

#region 第八行显示

     wordDoc.Tables.Item(1).Cell(8,1).Merge(wordDoc.Tables.Item(1).Cell(8,2));

     wordDoc.Tables.Item(1).Cell(8,2).Merge(wordDoc.Tables.Item(1).Cell(8,3));

     wordDoc.Tables.Item(1).Cell(8,2).Merge(wordDoc.Tables.Item(1).Cell(8,3));

     wordDoc.Tables.Item(1).Cell(8,2).Merge(wordDoc.Tables.Item(1).Cell(8,3));

#endregion

#region 第九行显示

     wordDoc.Tables.Item(1).Cell(9,1).Merge(wordDoc.Tables.Item(1).Cell(9,2));

     wordDoc.Tables.Item(1).Cell(9,3).Merge(wordDoc.Tables.Item(1).Cell(9,4));

////******************

     wordDoc.Tables.Item(1).Cell(9, 1).Range.Text = "cell91";

     //wordDoc.Tables.Item(k).Cell(9, 2).Range.Text =  (DT.Rows[i]["cell91"].ToString()=="1"?"有":"无");

////******************

     wordDoc.Tables.Item(1).Cell(9, 3).Range.Text = "cell93";

   

     #endregion

#region 第十行显示

     wordDoc.Tables.Item(1).Cell(10,1).Merge(wordDoc.Tables.Item(1).Cell(10,2));

     wordDoc.Tables.Item(1).Cell(10,3).Merge(wordDoc.Tables.Item(1).Cell(10,4));

     ////******************

     wordDoc.Tables.Item(1).Cell(10, 1).Range.Text = "cell101";

////******************

     wordDoc.Tables.Item(1).Cell(10, 3).Range.Text = "cdll103";

     //wordDoc.Tables.Item(k).Cell(10, 4).Range.Text = (DT.Rows[i]["Label"].ToString()=="1"?"有":"无");

     #endregion

#region 第十一行显示

     wordDoc.Tables.Item(1).Cell(11,1).Merge(wordDoc.Tables.Item(1).Cell(11,2));

     wordDoc.Tables.Item(1).Cell(11,3).Merge(wordDoc.Tables.Item(1).Cell(11,4));

     ////******************

     wordDoc.Tables.Item(1).Cell(11, 1).Range.Text = "cell111";

////******************

     wordDoc.Tables.Item(1).Cell(11, 3).Range.Text = "cell113";

   

     #endregion

#region 第十二行显示

     wordDoc.Tables.Item(1).Cell(12,1).Merge(wordDoc.Tables.Item(1).Cell(12,2));

     wordDoc.Tables.Item(1).Cell(12,3).Merge(wordDoc.Tables.Item(1).Cell(12,4));

     ////******************

     wordDoc.Tables.Item(1).Cell(12, 1).Range.Text = "cell121";

////******************

     wordDoc.Tables.Item(1).Cell(12, 3).Range.Text = "cell123";

#endregion

#region 第十三行显示

     wordDoc.Tables.Item(1).Cell(13,1).Merge(wordDoc.Tables.Item(1).Cell(13,2));

     wordDoc.Tables.Item(1).Cell(13,3).Merge(wordDoc.Tables.Item(1).Cell(13,4));

////******************

     wordDoc.Tables.Item(1).Cell(13, 1).Range.Text = "cell131";

////******************

     wordDoc.Tables.Item(1).Cell(13, 3).Range.Text = "cell133";

  

     #endregion

wordDoc.Tables.Item(1).Select();

     wordApp.Application.Selection.Cut();

//重新成声所有表

for(int i = 0; i<=DT.Rows.Count-1;i++)

     {

      wordApp.Application.Selection.Paste();

      int k = i+1;

      #region    更新数据

#region 插入数据行

      

      wordDoc.Tables.Item(k).Cell(1, 2).Range.Text = DT.Rows[i]["1"].ToString();

////******************

      

      wordDoc.Tables.Item(k).Cell(1, 4).Range.Text = DT.Rows[i]["2"].ToString();

////******************

       

      wordDoc.Tables.Item(k).Cell(2, 2).Range.Text = DT.Rows[i]["3"].ToString();

////******************

      

      wordDoc.Tables.Item(k).Cell(2, 4).Range.Text = DT.Rows[i]["4"].ToString();

#endregion

#region 第三行显示

      ////******************

      

      wordDoc.Tables.Item(k).Cell(3, 2).Range.Text = DT.Rows[i]["5"].ToString();

      ////******************

      

      wordDoc.Tables.Item(k).Cell(3, 4).Range.Text = DT.Rows[i]["6"].ToString();

#endregion

#region 第五行显示

      ////******************

      

      wordDoc.Tables.Item(k).Cell(5, 2).Range.Text = DT.Rows[i]["7"].ToString();

      wordDoc.Tables.Item(k).Cell(5, 2).Range.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft;

      #endregion

#region  第四行显示

////******************

      

      wordDoc.Tables.Item(k).Cell(4, 2).Range.Text = DT.Rows[i]["8"].ToString();

////******************

      

      wordDoc.Tables.Item(k).Cell(4, 4).Range.Text = DT.Rows[i]["9"].ToString();

////******************

      

      wordDoc.Tables.Item(k).Cell(4, 6).Range.Text = DT.Rows[i]["0"].ToString();

      #endregion

#region 第六行显示

      ////******************

      

      wordDoc.Tables.Item(k).Cell(6, 2).Range.Text = DT.Rows[i]["11"].ToString();

      wordDoc.Tables.Item(k).Cell(6, 2).Range.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft;

      #endregion

#region 第七行显示

      ////******************

      

      wordDoc.Tables.Item(k).Cell(7, 2).Range.Text = DT.Rows[i]["12"].ToString();

      wordDoc.Tables.Item(k).Cell(7, 2).Range.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft;

      #endregion

#region 第八行显示

      ////******************

      

      string strTechlevel = DT.Rows[i]["Level"].ToString();

      string returnTechlevel = "";

      switch(strTechlevel)

      {

       case "1":

        returnTechlevel = "Level1";

        break;

       case "2":

        returnTechlevel = "Level2";

        break;

       case "3":

        returnTechlevel = "Level3";

        break;

       case "0":

        returnTechlevel = "Level4";

        break;

       default:

        returnTechlevel = "Level5";

        break;

      }

      wordDoc.Tables.Item(k).Cell(8, 2).Range.Text = returnTechlevel;

#endregion

#region 第九行显示

      ////******************

      

      wordDoc.Tables.Item(k).Cell(9, 2).Range.Text =  (DT.Rows[i]["14"].ToString()=="1"?"有":"无");

////******************

      

      wordDoc.Tables.Item(k).Cell(9, 4).Range.Text = (DT.Rows[i]["15"].ToString()=="1"?"是":"否");

      #endregion

#region 第十行显示

      ////******************

      

      wordDoc.Tables.Item(k).Cell(10, 2).Range.Text =  (DT.Rows[i]["16"].ToString()=="1"?"有":"无");

////******************

      

      wordDoc.Tables.Item(k).Cell(10, 4).Range.Text = (DT.Rows[i]["17"].ToString()=="1"?"有":"无");

      #endregion

#region 第十一行显示

////******************

      

      wordDoc.Tables.Item(k).Cell(11, 2).Range.Text =  (DT.Rows[i]["18"].ToString()=="1"?"是":"否");

////******************

      

      wordDoc.Tables.Item(k).Cell(11, 4).Range.Text = (DT.Rows[i]["19"].ToString()=="1"?"是":"否");

      #endregion

#region 第十二行显示

      ////******************

      

      wordDoc.Tables.Item(k).Cell(12, 2).Range.Text =  (DT.Rows[i]["20"].ToString()=="1"?"是":"否");

////******************

      

      wordDoc.Tables.Item(k).Cell(12, 4).Range.Text =  (DT.Rows[i]["21"].ToString()=="1"?"是":"否");

      #endregion

#region 第十三行显示

     

      

      wordDoc.Tables.Item(k).Cell(13, 2).Range.Text =  (DT.Rows[i]["22"].ToString()=="1"?"是":"否");

////******************

      

      wordDoc.Tables.Item(k).Cell(13, 4).Range.Text =  (DT.Rows[i]["23"].ToString()=="1"?"是":"否");

      #endregion

#endregion

//插入分页

      if(i!=DT.Rows.Count-1)

      {

       object mymissing = System.Reflection.Missing.Value;

       object myunit = Word.WdUnits.wdStory;

       wordApp.Selection.EndKey(ref myunit,ref mymissing);

object pBreak= (int)Word.WdBreakType.wdPageBreak;

       wordApp.Selection.InsertBreak( ref pBreak );

      }

     }

wordDoc.SaveAs(ref filename, ref missing,ref missing, ref missing,ref missing,ref missing,ref missing,ref missing,ref missing,ref missing, ref missing);

   

   

     wordDoc.Close(ref Nothing, ref Nothing, ref Nothing); 

     wordApp.Quit(ref Nothing, ref Nothing, ref Nothing);

if ( wordDoc != null )

     {

      System.Runtime.InteropServices.Marshal.ReleaseComObject(wordDoc);

      wordDoc = null;

     }

     if ( wordApp != null )

     {

      System.Runtime.InteropServices.Marshal.ReleaseComObject(wordApp);

      wordApp = null;

     }

     GC.Collect();

     //KillWordProcess();

     string strUrl = "MakeWordFile.aspx?username="+Request.QueryString["username"].ToString();

     utility.ShowPopMessage("文档生成完毕!",strUrl);

    }

    else

    {

     utility.ShowPopMessage("无任何数据!");

    }

    #endregion

}

   catch

   {

    wordDoc.Close(ref Nothing, ref Nothing, ref Nothing); 

    wordApp.Quit(ref Nothing, ref Nothing, ref Nothing); 

    if ( wordDoc != null )

    {

     System.Runtime.InteropServices.Marshal.ReleaseComObject(wordDoc);

     wordDoc = null;

    }

    if ( wordApp != null )

    {

     System.Runtime.InteropServices.Marshal.ReleaseComObject(wordApp);

     wordApp = null;

    }

    GC.Collect();

    utility.ShowPopMessage("文档生成失败!");

}

  }

c#操作word表格的更多相关文章

  1. 黄聪:C#操作Word表格的常见操作(转)

    几种常见C#操作Word表格操作有哪些呢?让我们来看看具体的实例演示: bool saveChange = false; //C#操作Word表格操作 object missing = System. ...

  2. 转发:VB程序操作word表格(文字、图片)

    很多人都知道,用vb操作excel的表格非常简单,但是偏偏项目中碰到了VB操作word表格的部分,google.baidu搜爆了,都没有找到我需要的东西.到是搜索到了很多问这个问题的记录.没办法,索性 ...

  3. Java 操作Word表格——创建嵌套表格、添加/复制表格行或列、设置表格是否禁止跨页断行

    本文将对如何在Java程序中操作Word表格作进一步介绍.操作要点包括 如何在Word中创建嵌套表格. 对已有表格添加行或者列 复制已有表格中的指定行或者列 对跨页的表格可设置是否禁止跨页断行 创建表 ...

  4. Java 操作Word表格

    本文将对如何在Java程序中操作Word表格作进一步介绍.操作要点包括 如何在Word中创建嵌套表格. 对已有表格添加行或者列 复制已有表格中的指定行或者列 对跨页的表格可设置是否禁止跨页断行 创建表 ...

  5. Delphi 操作word 表格

    var wordApp, WordDoc, WrdSelection, wrdtable: variant; strAdd: string; wdPar,wdRange:OleVariant; iCo ...

  6. Aspose.Word 操作word表格的行 插入行 添加行

    rows.insert或rows.add前row必须有单元格cell private void button3_Click(object sender, EventArgs e) {         ...

  7. Aspose.Words.Tables.Row类操作word表格行

    http://www.aspose.com/docs/display/wordsnet/Aspose.Words.Tables.Row+Class Retrieves the index of a r ...

  8. C#中使用Spire.docx操作Word文档

    使用docx一段时间之后,一些地方还是不方便,然后就尝试寻找一种更加简便的方法. 之前有尝试过使用Npoi操作word表格,但是太烦人了,随后放弃,然后发现免费版本的spire不错,并且在莫种程度上比 ...

  9. C#操作word模板插入文字、图片及表格详细步骤

    c#操作word模板插入文字.图片及表格 1.建立word模板文件 person.dot用书签 标示相关字段的填充位置 2.建立web应用程序 加入Microsoft.Office.Interop.W ...

随机推荐

  1. 【Leetcode】【Hard】Insert Interval

    Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessa ...

  2. UTL_FILE建文件失败“ORA-29280: 目录路径无效”错误

    存储过程写文件需要配置可写的目录,具体是utl_file_dir这个参数,把UTL_FILE输出的目录写到这个参数,如果不限制,可以令utl_file_dir=*   查看:   SQL> sh ...

  3. Linux下通过NFS共享文件夹

    测试环境:CentOS 6.7 服务端 # yum -y install nfs-utils rpcbind # 开启服务 service nfs start service rpcbind star ...

  4. Devexpress GridView内嵌dx:ASPxGridLookup取得控件值乱跳解决方案

    一 页面嵌入ASPxGridLookup控件 <dx:ASPxGridView ID="gridDetail" runat="server"        ...

  5. [stm32] USART USART1收发功能工程

    >_<!功能:PC端发送一个特定的字符:0x0d 0x0a,单片机则返回一句话,如图: >_<!知识: 1.复用功能I/O和调试配置(AFIO)  为了优化外设数目,可以把一些 ...

  6. windows下安装mysql压缩包版[转]

    版本:5.6.17 1.将解压后的文件夹放到某个目录下,比如c:\software; 2.在环境变量中新建MYSQL_HOME=C:\software\mysql-5.6.17-winx64,然后在系 ...

  7. atitit.js 各版本 and 新特性跟浏览器支持报告

    atitit.js 各版本 and 新特性跟浏览器支持报告 一个完整的JavaScript实现是由以下3个不同部分组成的 •核心(ECMAScript)--JavaScript的核心ECMAScrip ...

  8. 数据采集:完美下载淘宝Ip数据库 简单的程序节省60元人民币而不必购买数据库

    曾经做网站类型的程序时,经常需要收集客户端的访问数据,然后加以分析.这需要一个Ip数据库,数据表中显示Ip所在的省份市区等信息.网络上有流传的Ip纯真数据库,一些公开的Web服务也可以查询Ip地址信息 ...

  9. Unity3D编程学习分享

    学习地址:http://www.ixueyun.com/lessons/detail-lessonId-692.html 一.课程概述: 以前大部分3D游戏出现在pc和ps.XBox等专业游戏主机上, ...

  10. Mars的自语重出江湖,祝大家端午节安康

    上一篇博客似乎已是非常久远的回忆了,不再码字也已经很多年.<三国演义>里,刘备投靠曹操的那段时间里,2个兄弟问刘备未来,刘备说: 屈身守分,以待天时,不可与命争也. 这样一个时代,每个老百 ...