| 订阅 | 在线投稿
分享
 
 
当前位置: 王朝网络 >> delphi >> Excel2000: yong Delphi zi dong sheng cheng bao biao

Excel2000: yong Delphi zi dong sheng cheng bao biao

2008-05-21 03:17:03 编辑來源:互联网 评论
 
 
 
本文为【Excel2000:用Delphi自动生成报表】的拼音翻译版
  zhai yao :Excel shi dang qian zui liu xing de shu ju bao biao zhi zuo gong ju 。 ben wen jie shao ru he shi yong Delphi lai kong zhi Excel wan cheng shu ju ku yu bao biao zhi jian de shu ju jiao huan , tao lun le bao biao zhi zuo gong cheng zhong de yi xie xi jie xing wen ti 。
  guan jian zi :Delphi,Excel, bao biao
  yin yan
  shu ju bao biao zuo wei qi shi ye dan wei shang bao he xia da de chong yao xin xi zai ti , sui zhe xin xi hua jian she de bu duan tui jin , zai shi ji de gong zuo zhong de dao le qian suo wei you de ying yong 。 yin ci , shu ju bao biao yi jing cheng wei guan li xin xi xi tong zhong chong yao de yi xiang gong neng , bing qie , you yu shu ju de duo yang xing he tong ji xin xi de zeng jia , shu ju bao biao de xi tong shi xian bian de yue lai yue fu duo 。
  Delphi shi yi ge gao xiao de ke shi hua shu ju ku guan li xin xi xi tong kai fa gong ju ,. dan shi Delphi kai fa huan jing zhong ti gong de bao biao kong jian zai zhi zuo fu duo bao biao shi xian de bu gou li xiang , bu guan shi yi qian ban ben ti gong de Quick Report kong jian zu , huan shi Delphi 7 ti gong de Rave kong jian zu , dou bu neng rang yong hu dui sheng cheng de bao biao jin xing gai dong , qie cheng xu kong zhi hen nan shi xian 。Excel zuo wei xian dai ban gong chang yong de dian zi biao ge zhi zuo gong ju , yi ta de yi cao zuo xing he shi yong xing , de dao le ge xing ye ban gong ren yuan de qing lai 。 ben wen gen ju shi ji ying yong shi jian , jie shao li yong Delphi bian cheng kong zhi Excel sheng cheng bao biao de ge zhong fang fa 。
  Delphi kong zhi Excel de fang fa
  1 chuang jian Excel wen jian
  yao zai Delphi zhong kong zhi Excel, jiu bi xu yong dao OLE zi dong hua 。 xian zai yi ban cai yong OLE2 lai chuang jian OLE dui xiang , dang ji huo yi ge OLE dui xiang shi , fu wu qi cheng xu jin zai rong qi cheng xu nei bu ji huo , zhe jiu shi suo wei de “ jiu di ji huo ”(in-place activation)。
  chuang jian Excel wen jian shi , xian chuang jian yi ge OLE dui xiang , ran hou zai dui xiang zhong jian li gong zuo biao worksheet, ru han shu createExcel suo shi :
  function createExcel:variant;
  var
  v:variant;
  sheet:variant;
  begin
  v:=createoleobject('Excel.Application');// chuang jian OLE dui xiang
  v.visible:=true;
  v.workbooks.add(-4167); // tian jia gong zuo biao
  v.workbooks[1].sheets[1].name:='test';
  sheet:=v.workbooks[1].sheets['test'];
  return v;
  end;
  2 shu ju biao ge kong zhi
  Excel biao ge de kong zhi , zhu yao bao kuo shu ju de dao ru 、 xiu gai ; dan yuan ge de he bing 、 bian kuang de kong zhi ; biao ge de fu zhi 、 nian tie deng 。 dang bao biao ge shi yi ding de qing kuang xia , biao ge de fu zhi 、 nian tie xian de you wei chong yao , zhe yang , ke yi xian zhi zuo yi ge wen jian mo ban , ran hou an zhao shi ji xu yao shu chu duo ye bao biao ji ke 。
  (1) shu ju de dao ru (importData)
  procedure importData;
  var
  I,j:integer;
  v:variant;
  begin
  v:=createExcel; // chuang jian Excel wen jian test
  for I:=0 to maxcolumn do
  begin
  for j:=0 to maxrow do
  v.workbooks[1].sheets[1].cells[I,j]:=I*j; // dao ru shu ju
  end;
  end;
  (2) dan yuan ge de he bing 、 bian kuang de kong zhi (lineStylecontrol)
  dan yuan ge de he bing , shi zai xuan ding he bing fan wei de qing kuang xia jin xing de 。 bian kuang kong zhi ke yi cao zuo bian kuang xian tiao de shi fou xian shi 。 qi ta fang shi de kong zhi , ke yi fang zhao xia mian guo cheng jin xing 。
  procedure lineStylecontrol;
  var
  v,sheet,range:variant;
  begin
  v:=createExecl;
  sheet:= v.workbooks[1].sheets[1];
  range:=sheet.range[sheet.cells[1,1],sheet.cells[39,30]];// xuan ding biao ge
  range.select;
  range.merge; // he bing dan yuan ge
  range.borders.linestyle:=xlcontinuous; // zhi bian kuang xian ke jian
  range.font.size:=9; // gai bian biao ge nei wen ben zi ti da xiao
  end;【原文】【汉音对照
 
 
 
 
 
 
 
 
 
日版宠物情人插曲《Winding Road》歌词

日版宠物情人2017的插曲,很带节奏感,日语的,女生唱的。 最后听见是在第8集的时候女主手割伤了,然后男主用嘴帮她吸了一下,插曲就出来了。 歌手:Def...

兄弟共妻,我成了他们夜里的美食

老钟家的两个儿子很特别,就是跟其他的人不太一样,魔一般的执着。兄弟俩都到了要结婚的年龄了,不管自家老爹怎么磨破嘴皮子,兄弟俩说不娶就不娶,老父母为兄弟两操碎了心...

如何磨出破洞牛仔裤?牛仔裤怎么剪破洞?

把牛仔裤磨出有线的破洞 1、具体工具就是磨脚石,下面垫一个硬物,然后用磨脚石一直磨一直磨,到把那块磨薄了,用手撕开就好了。出来的洞啊很自然的。需要猫须的话调几...

我就是扫描下图得到了敬业福和爱国福

先来看下敬业福和爱国福 今年春节,支付宝再次推出了“五福红包”活动,表示要“把欠大家的敬业福都还给大家”。 今天该活动正式启动,和去年一样,需要收集“五福”...

冰箱异味产生的原因和臭味去除的方法

有时候我们打开冰箱就会闻到一股异味,冰箱里的这种异味是因为一些物质发出的气味的混合体,闻起来让人恶心。 产生这些异味的主要原因有以下几点。 1、很多人有这种习...

 
 
   zhai yao :Excel shi dang qian zui liu xing de shu ju bao biao zhi zuo gong ju 。 ben wen jie shao ru he shi yong Delphi lai kong zhi Excel wan cheng shu ju ku yu bao biao zhi jian de shu ju jiao huan , tao lun le bao biao zhi zuo gong cheng zhong de yi xie xi jie xing wen ti 。    guan jian zi :Delphi,Excel, bao biao    yin yan    shu ju bao biao zuo wei qi shi ye dan wei shang bao he xia da de chong yao xin xi zai ti , sui zhe xin xi hua jian she de bu duan tui jin , zai shi ji de gong zuo zhong de dao le qian suo wei you de ying yong 。 yin ci , shu ju bao biao yi jing cheng wei guan li xin xi xi tong zhong chong yao de yi xiang gong neng , bing qie , you yu shu ju de duo yang xing he tong ji xin xi de zeng jia , shu ju bao biao de xi tong shi xian bian de yue lai yue fu duo 。   Delphi shi yi ge gao xiao de ke shi hua shu ju ku guan li xin xi xi tong kai fa gong ju ,. dan shi Delphi kai fa huan jing zhong ti gong de bao biao kong jian zai zhi zuo fu duo bao biao shi xian de bu gou li xiang , bu guan shi yi qian ban ben ti gong de Quick Report kong jian zu , huan shi Delphi 7 ti gong de Rave kong jian zu , dou bu neng rang yong hu dui sheng cheng de bao biao jin xing gai dong , qie cheng xu kong zhi hen nan shi xian 。Excel zuo wei xian dai ban gong chang yong de dian zi biao ge zhi zuo gong ju , yi ta de yi cao zuo xing he shi yong xing , de dao le ge xing ye ban gong ren yuan de qing lai 。 ben wen gen ju shi ji ying yong shi jian , jie shao li yong Delphi bian cheng kong zhi Excel sheng cheng bao biao de ge zhong fang fa 。   Delphi kong zhi Excel de fang fa   1 chuang jian Excel wen jian    yao zai Delphi zhong kong zhi Excel, jiu bi xu yong dao OLE zi dong hua 。 xian zai yi ban cai yong OLE2 lai chuang jian OLE dui xiang , dang ji huo yi ge OLE dui xiang shi , fu wu qi cheng xu jin zai rong qi cheng xu nei bu ji huo , zhe jiu shi suo wei de “ jiu di ji huo ”(in-place activation)。    chuang jian Excel wen jian shi , xian chuang jian yi ge OLE dui xiang , ran hou zai dui xiang zhong jian li gong zuo biao worksheet, ru han shu createExcel suo shi :   function createExcel:variant;   var   v:variant;   sheet:variant;   begin   v:=createoleobject('Excel.Application');// chuang jian OLE dui xiang   v.visible:=true;   v.workbooks.add(-4167); // tian jia gong zuo biao   v.workbooks[1].sheets[1].name:='test';   sheet:=v.workbooks[1].sheets['test'];   return v;   end;   2 shu ju biao ge kong zhi   Excel biao ge de kong zhi , zhu yao bao kuo shu ju de dao ru 、 xiu gai ; dan yuan ge de he bing 、 bian kuang de kong zhi ; biao ge de fu zhi 、 nian tie deng 。 dang bao biao ge shi yi ding de qing kuang xia , biao ge de fu zhi 、 nian tie xian de you wei chong yao , zhe yang , ke yi xian zhi zuo yi ge wen jian mo ban , ran hou an zhao shi ji xu yao shu chu duo ye bao biao ji ke 。   (1) shu ju de dao ru (importData)   procedure importData;   var   I,j:integer;   v:variant;   begin   v:=createExcel; // chuang jian Excel wen jian test   for I:=0 to maxcolumn do   begin   for j:=0 to maxrow do   v.workbooks[1].sheets[1].cells[I,j]:=I*j; // dao ru shu ju   end;   end;   (2) dan yuan ge de he bing 、 bian kuang de kong zhi (lineStylecontrol)    dan yuan ge de he bing , shi zai xuan ding he bing fan wei de qing kuang xia jin xing de 。 bian kuang kong zhi ke yi cao zuo bian kuang xian tiao de shi fou xian shi 。 qi ta fang shi de kong zhi , ke yi fang zhao xia mian guo cheng jin xing 。   procedure lineStylecontrol;   var   v,sheet,range:variant;   begin   v:=createExecl;   sheet:= v.workbooks[1].sheets[1];   range:=sheet.range[sheet.cells[1,1],sheet.cells[39,30]];// xuan ding biao ge   range.select;   range.merge; // he bing dan yuan ge   range.borders.linestyle:=xlcontinuous; // zhi bian kuang xian ke jian   range.font.size:=9; // gai bian biao ge nei wen ben zi ti da xiao   end;
󰈣󰈤
  免责声明:本文仅代表作者个人观点,与王朝网络无关。王朝网络登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
情人节的清纯女生(9)
情人节的清纯女生(8)
情人节的清纯女生(7)
情人节的清纯女生(6)
山东蓬莱海边组照
一探哲蚌 II
一探哲蚌 III
古长城的一角
 
>>返回首页<<
 
 
 为你推荐
 
 
 
 转载本文
 UBB代码 HTML代码
复制到剪贴板...
 
 热帖排行
 
 
 
 
 
©2005- 王朝网络 版权所有