Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: RE: Printing centered text


Message #1 by weh2oski4u@p... on Sat, 27 Jul 2002 15:25:49
Add the ScaleTop property:

currenty = .scaletop + (.scaleheight - .textHeight(sMyString)) / 2


Marco

-----Original Message-----
From: weh2oski4u@p... [mailto:weh2oski4u@p...]
Sent: Saturday, July 27, 2002 8:26 AM
To: professional vb
Subject: [pro_vb] RE: Printing centered text


Hello-

Does anyone know of a way to do this when the top and bottom non-printing 
regions are not of equal size? The statement:

CurrentY = ScaleHeight / 2 - HalfHeight   ' Set Y.

does not work in that situation.

Thanks,
Gretchen

  Return to Index