All was going well until I tried my program that prints out a form on my client's printer.
The printer was a HP LaserJet 2010.
It prints fine for everything else but my program (in another language).
Now, the program prints fine at my house on a couple computers.
But, my client's computer is a 64bit (32 bit processor though) mainboard (motherboard). Would that be the culprit as to the blank page that is printed?
I tried uninstalling the driver-only (they were waiting for the download of the full CD software package and I had to go) and reinstalling, to no avail. I do not see any other screencapture programs loaded or any other programs I am familiar with that could even possible create a problem.
This is a show-stopper for me. If you have any ideas, and I do very much appreciate your help, they would most definitely be appreciated.
Till a response bounces back I will keep thinking on this. I will take a printer over to their shop too and try that out.
TIA
Intrigued - Registered PureBasic, lifetime updates user
I tried trond's first program and it works fine but if you change it so that it prints just the client area then you get some garbage at the right and bottom of the page.
When I say garbage I mean part of the screen that your window is on, I guess it has something to do with getting the rectangle size of the window you want to print and then trying to only print the client area.
Extra pixels get added on to the print to make it the same size as the original rectangle.
This morning my client tried out the new .exe with netmaestro's example and that did the trick. Now he can print. It has the printer dialog which in the end is probably best (and what he decided he wanted).
The only setback I see with that approach is that pre-NTFS OSes are left in the cold. Maybe it's time not to worry about Win98/ME? Or should I?
TIA
ps. I also did not have luck netmaestro with your direction with concerns to printing just the Client Area. Maybe I misunderstood. But here is the only thing I changed:
If you were to open an invisible window and draw to it so that your client could not see it, how would you go about printing it?
I tried opening a visible window off of the screen but that gets printed as a black rectangle and if you use an invisible window and the code above then all you get is whatever is on the screen under where your invisible window is.
I hope that all makes sense!
basically all I want to do is print a window which is not shown anywhere.
Yeah, I thought as much. I just wondered why you can open an invisible window if its not actually usable for anything and then I thought about trying this, ah well, back to the drawing board.