Page 1 of 1

Posted: Sun Jan 05, 2003 11:15 pm
by BackupUser
Restored from previous forum. Originally posted by neuro.


Hi everyone

I would like to do some printing in my application but I am unable to get some printer data.
I need the physical width and height of the page but PB only gives the size of the printable area. I need it to get the correct DPI value, and to scale the texts correctly. Windows API has the GetDeviceCaps function but I am unable to use it. It needs a handle to the device but PB doesn't seem to give it.

If anybody has any idea please let me know.

Posted: Sun Jan 05, 2003 11:42 pm
by BackupUser
Restored from previous forum. Originally posted by tinman.

You could try:

hdc.l = StartDrawing(PrinterOutput())
value = GetDeviceCaps_(hdc, blahblahblah)


--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + SP1, PB3.40)

Posted: Tue Jan 07, 2003 11:41 pm
by BackupUser
Restored from previous forum. Originally posted by neuro.

Thanks a lot I will try it.

neuro