p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

pro_vb thread: [pro_vb]Printer pen width


Message #1 by "Emilio-Nakhle Antoun" <emilio@e...> on Thu, 12 Apr 2001 14:44:38 +0300
I think you mean .DrawWidth and not .Width

The DrawWidth property requires an integer, and it is in pixels, so
you have to scale it.
For example, if you want a line 0.5 millimeters thick you can use

Printer.DrawWidth = Printer.ScaleX(0.5, vbMillimeters, vbPixels)

It works with me.

> -----Original Message-----
> From:	Emilio-Nakhle Antoun [SMTP:emilio@e...]
> Sent:	Thursday, April 12, 2001 4:45 AM
> To:	professional vb
> Subject:	[pro_vb] [pro_vb]Printer pen width
> 
> Hi everybody,
> printer.width can be only 1, 2...
> Is there any way to use printer width equal to 1.5
> Thank you


  Return to Index