PageHeight、PageWidth-pixels of the currently printing page
XDPI、YDPI-pixel definition of the printer
XDPI、YDPI-pixel definition of the printer
解决方案 »
- 用过BusinessSkinForm的进来看下
- 别了,2009,兄弟们明年再见!祝新年快乐!
- ##### 怎么把一个二进制文件转化为浮点数格式?
- tjvbrowseforfolderdialog是什么控件呢?在什么地方能下载呢
- 请问如何在表中更新指定的数据?在线给分
- 主表ID用自动追加的问题
- 如何获取系统时间并转化为字符串
- abort和exit 有何本质区别?
- 我用d5做个程序,要显示html内容
- 拿到一个.dcu以后,如何知道它里面有哪些类型,有哪些函数,函数的参数是什么
- 我做了一个智能出卷系统(比国内任何一款都实用,别说科利华和清华同方等等,简直是太次),我现在想卖掉,请帮忙提供销售渠道(提成大大的),还
- TEdit控件有右对齐属性吗?~~~~~~我怎么一直都找不到呢?
var
PageSize : TPoint;
begin
//PageSize.X; 纸张物理宽度-单位:点
//PageSize.Y; 纸张物理高度-单位:点
Escape(Printer.Handle, GETPHYSPAGESIZE, 0, nil, @PageSize);
Result := PageSize;
end;
function XPointToMm(Pos: Integer): Extended;
begin
//横向点单位转换为毫米单位
Result := Pos*25.4/HPointsPerInch;
end;function YPointToMm(Pos: Integer): Extended;
begin
//纵向点单位转换为毫米单位
Result := Pos*25.4/VPointsPerInch;
end;
begin
//取得水平方向每英寸打印机的点数
Result := GetDeviceCaps(Printer.Handle, LOGPIXELSX);
end;function VPointsPerInch: Integer;
begin
//取得纵向方向每英寸打印机的光栅数
Result := GetDeviceCaps(Printer.Handle, LOGPIXELSY)
end;function XPointToMm(Pos: Integer): Extended;
begin
//横向点单位转换为毫米单位
Result := Pos*25.4/HPointsPerInch;
end;function YPointToMm(Pos: Integer): Extended;
begin
//纵向点单位转换为毫米单位
Result := Pos*25.4/VPointsPerInch;
end;