Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# GDI+
Hi guys, this is my first ever question in this forum.
 
My problem is, we are developing a cheque printing software; for that, we are placing the cheque in the printer at an angle of 90 degrees (because of the paper size). To correct this, I need to print the cheque in the tilted angle of 90 degrees.
 
How do I do this?
 
Thanks
Posted 17-Dec-09 21:32pm
Edited 17-Dec-09 21:41pm
0x3c033.2K
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

This depends on how far you are through the process. If you've got the image of the cheque stored on the computer, then you simply use Image.FromFile to load it in, get a Graphics instance using Graphics.FromImage, then use the Graphics.RotateTransform[^] method.
 
From there you can either print it out or save it back into the file to print it later, using a graphics program. You use a PrintDocument for this, or you can use Image.Save.
 
PS: I edited your original question to correct a few small readability issues. If you feel that I've missed something, feel free to edit it again Smile | :)
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Check with the printer settings and see if you could modify the print direction (some printers, and some specific firmwares don't support it at all). In some cases, you'll have to convert the whole thing to images, chop the images and print them out in order (I worked on an Epson thermal printer a few years ago on a similar problem, and this is what I did).
 
Some printers allow you to set the vertical and horizontal margin, with which you could offset the printing area. But none of these can readily solve your problem. You'll have to do some research and some work on your own until you could choose an option that suits your needs.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

I've already told you to check with the printer specifications if or not does it support such printing. Have you done that yet?!
 
Why have you posted your question as an "ANSWER"?! Roll eyes | :rolleyes:
 
Use the message board at the bottom of this page to provide any additional information that you may need to provide. Right now, your query is not something that anyone can answer. Who will know what sort of printer it is, what kind of features does it support, etc?!
 
I'm afraid you'll have to read the printer manual and do this yourself.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.1411022.1 | Last Updated 6 Apr 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100