would it be possible to make a printer driver that gets information
and turn is 90 dicrais around with c++
this is for trying to get rappidfile to print landscape
would it be possible to make a printer driver that gets information
and turn is 90 dicrais around with c++
this is for trying to get rappidfile to print landscape
if x == y , y == x
Not without knowing a good deal more about which OS/Compiler/Printer/.... you have
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
the os is windows 98
the printer is hp deskjet 5600 series
compiler dev-c++ (4)
If you were running this on Windows it would be fairly easy. You just have to get the device context for the printer and then draw the string at 90 degrees into the graphics context. I'm not sure how you would do it from a Unix program.
Uhh... he's using Windows 98, so why'd you bring up *NIX?Originally posted by CompURocket
If you were running this on Windows it would be fairly easy. You just have to get the device context for the printer and then draw the string at 90 degrees into the graphics context. I'm not sure how you would do it from a Unix program.
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie
I guess I didn't read that line about Windows 98.
Just create a common print dialog box with the PD_RETURNDC flag set. This will give you the device context for the printer that you will be able to "draw" on using GDI.
You will have to create a custom font with the vertical properties and use it to "draw" your text.
References:
Look on MSDN for LOGFONT and its members lfEscapement and lfOrientation.
Here is a link that might help:
http://www.codeguru.com/mfc/comments/27249.shtml