flipping a form for printing
March 24, 2007 11:59am CST
hey guys! basically, i need this for printing. i've tried to search all over the net for answers, but can't find a good one. here's the problem: i created a program for ID printing using visual basic. to simplify things, i used a whole form, matched its size to letter-sized paper. now, the problem comes in when its time to print. the printout requires the whole image to be mirror-printed, meaning, it should be reverse printed. i can print the whole thing, no problem, if its printed normally. but i can't seem to find a way to print it in reverse. i tried using bitblt, but it only reverses the image. i need everything in that form reverse-printed. can anyone help me out on this one?
28 Mar 07
Hi repzkoopz, You can solve this by simply using StretchBlt API. Because myLot didn't allow me to paste code here and I'm lazy to re-type all of my code. I have created the step by step instruction to create my simple testing project on my blog http://coderstalk.blogspot.com/2007/03/how-to-flip-visual-basic-form-in.html and I hope this will help you. You can observe how I use StretchBlt to flip the entire content of the form.
2 Apr 07
I am also having similar problem i have to print a report For that i felt Rich text box is good tool where we can open/save an rtf format files and print it as we can print in word documents now i am finding deficulty in inserting values in proper position my sugession for u is you can go for Rich text box
2 Apr 08
hmmm.. unfortunately, i'm not using .net. i stick with vb6, i guess i'm in love with it. hehehe.. but i managed to flip what i needed to be flipped so its ok.. the only problem i have left is that i can't flip anything exceeding the size of the screen.