ÒªÓÃvb´òÓ¡Ò»ÌõÏߣ¬³¤¶ÈÊÇ100ºÁÃ×Ôõôд£¿
¹Ø×¢
VB code:
Printer.ScaleMode = vbMillimeters
Printer.Line (10, 10)-(110, 10)
Printer.ScaleMode = vbMillimeters
Printer.Line -(Printer.CurrentX + 100, Printer.CurrentY)
ѧϰ
ScaleMode ÊôÐÔ
µ±Ê¹ÓÃͼÐη½·¨»òµ÷Õû¿Ø¼þλÖÃʱ£¬·µ»Ø»òÉèÖÃÒ»¸öÖµ£¬¸Ãֵָʾ¶ÔÏó×ø±êµÄ¶ÈÁ¿µ¥Î»¡£
Óï·¨
object.ScaleMode [= value]
ScaleMode ÊôÐÔµÄÓï·¨°üº¬ÏÂÃ沿·Ö£º
²¿·Ö ÃèÊö
Object ¶ÔÏó±í´ïʽ£¬ÆäÖµÊÇ¡°Ó¦ÓÃÓÚ¡±ÁбíÖеÄÒ»¸ö¶ÔÏó¡£
Value Ò»¸öÖ¸¶¨¶ÈÁ¿µ¥Î»µÄÕûÊý£¬¡°ÉèÖÃÖµ¡±ÖÐÓÐÏêϸÃèÊö¡£
ÉèÖÃÖµ
value µÄÉèÖÃֵΪ£º
³£Êý ÉèÖÃÖµ ÃèÊö
VbUser 0 Ö¸³ö ScaleHeight¡¢ScaleWidth¡¢ScaleLeft ºÍ ScaleTop ÊôÐÔÖеÄÒ»¸ö»ò¶à¸ö±»ÉèÖÃΪ×Ô¶¨ÒåµÄÖµ¡£
VbTwips 1 £¨È±Ê¡Öµ£©ç¾£¨Ã¿Âß¼Ó¢´çΪ 1440 ç¾£»Ã¿Âß¼ÀåÃ×Ϊ 567 ¸öç¾£©¡£
VbPoints 2 °õ£¨Ã¿Âß¼Ó¢´çΪ 72 ¸ö°õ£©¡£
VbPixels 3 ÏñËØ£¨¼àÊÓÆ÷»ò´òÓ¡»ú·Ö±æÂʵÄ×îСµ¥Î»£©¡£
VbCharacters 4 ×Ö·û£¨Ë®Æ½Ã¿¸öµ¥Î»=120 ç¾£»´¹Ö±Ã¿¸öµ¥Î»=240 羡££©
VbInches 5 Ó¢´ç¡£
VbMillimeters 6 ºÁÃס£
VbCentimeters 7 ÀåÃס£
VbHimetric 8 HiMetric
VbContainerPosition 9 ¿Ø¼þÈÝÆ÷ʹÓõĵ¥Î»£¬¾ö¶¨¿Ø¼þλÖá£
VbContainerSize 10 ¿Ø¼þÈÝÆ÷ʹÓõĵ¥Î»£¬¾ö¶¨¿Ø¼þµÄ´óС¡£
ÎÒÓг§¼Ò×öµÄASPµÄ¼à¿Ø¼Ïñ£¨DVR£©µÄ¾ÖÓòÍø²¥·ÅµÄÔ´³ÌÐòÓë¿Ø¼þ£¬ÏëÒªÓÃASP.net×öÒ»¸öÊÓƵ»Ø·ÅµÄ³ÌÐò£¨ÀûÓÃËûµÄ¿Ø¼þ£©µ«²»ÖªÈçÏÂÈ¥×ö£¬Íû¸÷λָµã¡£
ÏȸãÇå³þËûÃǵĿؼþÊÇÔõôÓõÄ,
È»ºó¾ÍÖ±½ÓÓúÃÁË.
²»¹ý,Èç ......
ÈçºÎÔÚdatagridviewµÄ×îºóÒ»ÐÐ×öijÁÐÖµµÄºÍ»òÊdz˻ý¡£Òª¼ÆËã3¡¢4¡¢5Áи÷ÁеĺÍ,
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
&nbs ......