摘要:3)抓取窗体或控件图片 抓取窗体或控件图片,即要用到一个新的form2,参见《delphi图象截取编程示例(7)》 在main单元implementation的uses中添加capture2。 [capture windows or controls]窗体或控件抓图的action 事件procedure tmainform.cptwindowsexecute(sender: tobject);va......
摘要:(七)抓取窗体或控件图片窗体创建一个新的form2,保存为capture2.pas。设置属性bordericons的四个属性为false.borderstyle设为bsnone,formstyle设为fsstayontop.两个公共变量:frect:trect,fbmp:tbitmap;
unit capture2;
interface
uses windows, messages, sys......
Delphi图象截取编程示例(3)(五)tmainform的事件与函数 与 tprinter打印应用
////////// 打印知识 【程序编程相关:
VB中的单位缇与常用单位的换算】 【推荐阅读:
patch rtai 24.1.13 a】[菜单项file\打印] 事件: 【扩展信息:
VB.net入门(4):函数,过程】 procedure tmainform.fileprintitemclick(sender: tobject); begin {kh1}print;{kh2} screen.cursor := crhourglass; try if mdichildcount<>0 then with activemdichild as tmdichild do begin with printer do begin begindoc; //开始打印 canvas.draw(0,0,image1.picture.graphic); //图形输出 enddoc; //结束打印 end; end; finally ...
下一页 摘要:相信大家会经常遇到需要在web页面上给用户生成excel报表的情况。我刚好在最近的工作中遇到了,下面是一个使用jxl包(一个开源的包)的实例。 //servlet中生成提供下载的excel文档的例程,这里用的是jxl包,当然也可以用apache的poi包试试。 public void dopost(httpservletrequest request,httpservletresponse res......