呵呵,我的建议是将这个字符串放在MEMO或RICHEDIT中显示出来,然后送去打印。这样能控制字体的很多特征。
解决方案 »
- delphi控制打印机出了偏差,TCanvas,求救.
- Grid++report的GRDesigner怎么载入报表?
- 祝大家牛年快乐,事事如意!!
- FileExists()函数可以判定一个文件是否存在,那么如何判断一个文件夹是否存在?
- 串口MSComm分析读取的数据问题,没人能解决么
- 菜鸟提问~~~~
- 中午好!谁知道ExcelApplication控件是怎么用的
- 我是新手-->关于Socket的问题请大虾帮忙!!!
- fastreport vcl 5发布了,大家都还没有发现吗?
- 如何在DELPHI中画图(直线、椭圆、矩形)在MOUSEMOVE中要显示线条移动轨迹。最好有代码
- 数据库DateTime问题一则。
- 如何用SQL语言对一表的数据进行插入操作?
我也不记得,试一试
priner.canvas.textout(S,x,y)
Examples:procedure TForm1.Print1Click(Sender: TObject);
var
Line: Integer;
PrintText: TextFile; {declares a file variable}
begin
if PrintDialog1.Execute then
begin
AssignPrn(PrintText); {assigns PrintText to the printer}
Rewrite(PrintText); {creates and opens the output file}
Printer.Canvas.Font := Memo1.Font; {assigns Font settings to the canvas}
for Line := 0 to Memo1.Lines.Count - 1 do Writeln(PrintText, Memo1.Lines[Line]); {writes the contents of the Memo1 to the printer object}
CloseFile(PrintText); {Closes the printer variable}
end;
end