Link to home
Start Free TrialLog in
Avatar of Fraser_Admin
Fraser_AdminFlag for Canada

asked on

Rotate text in vb6

Using the vb6 printer object how can I rotate my text.

I want to print like this

Upright (0 degrees)   or
Shift text Sideways (90 degrees)  or
Shift text Upside Down (180 degrees)  or
Shift text Sideways (270 degrees)

           
Avatar of Tomeeboy
Tomeeboy
Flag of United States of America image

Here is a VB class for printing rotated text to the screen or printer.  This should work for you:

http://www.devx.com/vb2themax/Tip/19101

Hope this helps!

Tom
Avatar of Fraser_Admin

ASKER

I can't seem to get this to print.  The code all runs, but it doesn't send it to the printer??
If I print this to my form the angle number  are a mess.
OK I got this working.  Is there anyway I can send a picturebox instead of text?
This is what I am trying to do.  I have a barcode that I created and stored into a picture box.  I would like to be able to rotate it 90 degrees and then print it to the printer (with some other text which is also rotated).  I already have my text printing in the correct spot.  I just need to get my barcode out.

Thanks
Hi Fraser,

Glad to hear that you were able to get the code working.  Is the barcode you are trying to rotate just a regular image in a picture box?

Tom
ASKER CERTIFIED SOLUTION
Avatar of Tomeeboy
Tomeeboy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I am only using a black and white barcode.  I just took a quick look, but I will look further.  I will let you know how I make out.  
Any updates?

Thanks.
I havn't got a chance to look at it again.  It will be a couple of more days before I can.  Sorry I'm being so slow.  Trying to do to many things at once.  I will keep you posted.