Printing Problem

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by neuro.

Thanks a lot I will try it.

neuro
Post Reply