Printer.ScaleHeight = xxx
Printer.ScaleWidth = xxx
自己实际算一下xxx是多少吧

解决方案 »

  1.   

    老兄,能否请详细一点,我用的是Access里面自带的打印功能。
      

  2.   

    http://www.china-askpro.com/msg22/qa25.shtml不过是VC的,你可以参考一下...---------------------------------------------------------------十年生死两茫茫。不思量,自难忘。千里孤坟,无处话凄凉。纵使相逢应不识。尘满面,鬓如霜。夜来幽梦忽还乡。小轩窗,正梳妆。相顾无言,惟有泪千行。料得年年肠断处。明月夜,短松岗。
      

  3.   

    您遇到的问题跟我的一样(如下)
    http://www.csdn.net/expert/topic/827/827272.xml?temp=.5918238
      

  4.   

    您遇到的问题跟我的一样,请参看我的问题:
    http://www.csdn.net/expert/topic/827/827272.xml?temp=.7585871
      

  5.   

    谢谢大家,我先试试看。
    大家有没有注意到,我是用Access来打印的,不知VB的打印功能否实现。
      

  6.   

    object.ScaleMode [= value]The ScaleMode property syntax has these parts:Part Description 
    Object Anobject expression that evaluates to an object in the Applies To list. 
    Value An integer specifying the unit of measurement, as described in Settings. 
    SettingsThe settings for value are:Constant Setting Description 
    vbUser 0 Indicates that one or more of the ScaleHeight, ScaleWidth, ScaleLeft, and ScaleTop properties are set to custom values. 
    vbTwips 1 (Default)Twip (1440 twips per logical inch; 567 twips per logical centimeter). 
    vbPoints 2 Point (72 points per logical inch). 
    vbPixels 3 Pixel (smallest unit of monitor or printer resolution). 
    vbCharacters 4 Character (horizontal = 120 twips per unit; vertical = 240 twips per unit). 
    vbInches 5 Inch. 
    vbMillimeters 6 Millimeter. 
    vbCentimeters 7 Centimeter. 
    vbHimetric 8 HiMetric 
    vbContainerPosition 9 Units used by the control's container to determine the control's position. 
    vbContainerSize 10 Units used by the control's container to determine the control's size.  
    ResUsing the related ScaleHeight, ScaleWidth, ScaleLeft, and ScaleTop properties, you can create a custom coordinate system with both positive and negative coordinates. These four Scale properties interact with the ScaleMode property in the following ways: Setting the value of any other Scale property to any value automatically sets ScaleMode to 0. A ScaleMode of 0 is user-defined.
    Setting the ScaleMode property to a number greater than 0 changes ScaleHeight and ScaleWidth to the new unit of measurement and sets ScaleLeft and ScaleTop to 0. The CurrentX and CurrentY property settings change to reflect the new coordinates of the current point.