2012-04-01 · 知道合伙人软件行家
关注
展开全部
以下代码输出以标签的字体打印输出一行文字:
printer.canvas.font.assign(label1.font);
printer.canvas.font.pixelsperinch:=getdevicecaps(printer.canvas.handle,LOGPIXELSY);
printer.begindoc;
printer.canvas.textout(0,0,label.caption);
printer.enddoc;
printer.canvas.font.assign(label1.font);
printer.canvas.font.pixelsperinch:=getdevicecaps(printer.canvas.handle,LOGPIXELSY);
printer.begindoc;
printer.canvas.textout(0,0,label.caption);
printer.enddoc;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询