在线求解,打印时单位转换的问题,解决马上结贴
senol 2006-04-20 04:50:14 用printdocument打印输入内容,给出的位置坐标单位是毫米,因为打印时默认的单位是dispay-0.01英寸,该如何正确转换成厘米坐标呢?
现在找到的解决方案如下:
若原来的坐标是10,10(单位是毫米)要变成打印默认的单位
dim point_min as new point(100,100)
dim point_print as point
point_print=PrinterUnitConvert.Convert(point_min,HundredthsOfAMillimeter,PrinterUnit.Display)
这样的做法是否正确?
另外有没有统一的转换方法不用一个个的转换?