当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: //这里加添加一个excel对象的包装器。
 

 

 ·select转移工具箱    »显示摘要«
    摘要: 在bs系统中,经常使用到select之间的转移,这里提供了一些通用方法,希望对大家有所帮助 : ) 把下面的内容拷贝到一个htm文件中即可以看到效果. <script language="javascript">/**************************************************************************......
    摘要:1. create a env file in <oracle_home>\reports\server\, suppose it´s test.env append the directory where the fmx is in to the parameter forms90_path= and do other necessary modifications. ......


C#与Excel的交互示例

//这里加添加一个excel对象的包装器.就是添加一个引用

using system.drawing; 【程序编程相关:为DataGrid 写一个 DropDo

using system; 【推荐阅读:XML文件显示、修改、查找

using system.componentmodel; 【扩展信息:SQLServer与JAVA字符集转化

using system.collections;

using system.windows.forms;

namespace exceltest

{

 /// <summary>

 /// form3 的摘要说明.

 /// </summary>

 public class form3 : system.windows.forms.form

 {

  private system.windows.forms.button button1;

  private system.windows.forms.combobox combobox1;

  /// <summary>

  /// 必需的设计器变量.

  /// </summary>

  private system.componentmodel.container components = null;

  // excel object references.

  private excel.application m_objexcel =  null;

  private excel.workbooks m_objbooks = null;

  private excel._workbook m_objbook = null;

  private excel.sheets m_objsheets = null;

  private excel._worksheet m_objsheet = null;

  private excel.range m_objrange =  null;

  private excel.font m_objfont = null;

  private excel.querytables m_objqrytables = null;

  private excel._querytable m_objqrytable = null;

  // frequenty-used variable for optional arguments.

  private object m_objopt = system.reflection.missing.value;

  // paths used by the sample code for accessing and storing data.

  private string m_strnorthwind = @"c:\program files\microsoft visual studio\vb98\nwind.mdb";

  public form3()

  {

   //

   // windows 窗体设计器支持所必需的

   //

   initializecomponent();

   //

   // todo: 在 initializecomponent 调用后添加任何构造函数代码

   //

  }

  /// <summary>

  /// 清理所有正在使用的资源.

  /// </summary>

  protected override void dispose( bool disposing )

  {

   if( disposing )

   {

    if(components != null)

    {

     components.dispose();

    }

   }

   base.dispose( disposing );

  }

  #region windows 窗体设计器生成的代码

  /// <summary>

  /// 设计器支持所需的方法 - 不要使用代码编辑器修改

  /// 此方法的内容.
...   下一页
 ·生活感慨(qingyang)    »显示摘要«
    摘要:不要抱怨生活给予我们如此多的艰辛,也不要说幸福只是痛苦与痛苦的缝隙。我始终坚信当一切过去,我们都会得到我们想要的东西都会得到幸福,相儒以沫,不如相忘于江湖。如果可以一起坐拥,看花开花谢,云起云落。可是我们终究还是不能看透世俗,还得现实的活着。也许泰戈尔早就作过见证了,有一首诗:世界上最遥远的距离不是生与死 而是 我就站在你面前 你却不知道我爱你 世界上最遥远的距离 不是我就站在你面前 你却不知道我......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE