当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: http://dev.csdn.net/article/53/53442.shtm如何将几个DBGRID里的内容导入同一个EXCEL表中?在软件实际制作中,为节省开发成本和开发周期,一些软件人员通常会吧DBGrid中的数据直接导出到Excel表中,而先前能看到的函数仅仅只能在WorkBook的一...
 

 

    摘要:unit tray; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs,registry,shellapi, comctrls, stdctrls, buttons, menus, extctrls; const icon_id=3; nif_info......
 ·进程查看器1.3版开发后记     »显示摘要«
    摘要:   终于赶在元宵节这天发布“进程查看器1.3版”,顺便将它的中文版名字改为“05元宵版”。“进程查看器”一直都是用休息时间编码的,虽然1.3版增加的功能不多,但也耗用了好几天的下班时间。开发过程中还是有点东西需要记录下来,免得以后又忘记了。一、查找主窗体  通过特定的窗体句柄查找主窗体,这是以前做过的功能,随手写出以下代码......


如何将几个DBGRID里的内容导入同一个EXCEL表中....的问题

http://dev.csdn.net/article/53/53442.shtm

如何将几个dbgrid里的内容导入同一个excel表中? 【程序编程相关:我用Delphi实现的Singleton

【推荐阅读:[强烈推荐]Mini Delphi 20

在软件实际制作中,为节省开发成本与开发周期,一些软件人员通常会吧dbgrid中的数据直接导出到excel表中,而先前能看到的函数仅仅只能在workbook的一个sheet中导入数据,不支持多sheet!. 【扩展信息:让Fastreport3.x支持中文PD

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

单元应用:

windows, messages, sysutils, variants, classes, graphics, controls, forms,

dialogs, stdctrls, db, dbtables, grids, dbgrids, activex, comobj,

excel2000, oleserver;

procedure copydbdatatoexcel(args: array of const);

var

  icount, jcount: integer;

  xlapp: variant;

  sheet: variant;

  i: integer;

begin

  screen.cursor := crhourglass;

  if not varisempty(xlapp) then

  begin

    xlapp.displayalerts := false;

    xlapp.quit;

    varclear(xlapp);

  end;

  try

    xlapp := createoleobject(‘excel.application‘);

  except

    screen.cursor := crdefault;

  exit;

  end;

  xlapp.workbooks.add;//  (1)


...   下一页
    摘要: danny thorpe - borland chief scientist danny thorpe is a borland chief scientist responsible for strategic research in software development tools for the microsoft windows, microsoft .net, a......
» 本期热门文章:

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