in reply to Sending a bitmap to a printer with a specific dpi

Dave,

I found a few things for you on the net to get you pointed in the right direction. You can reference the following to get your feet wet:

Printer API

Progress reference to Windows API

perl under win32: output ascii data to printer

LXX. Printer functions

I was not able to find anything to specifically reference what you need. However, my approach would be to reference the API documentation for the printer driver, etc. that you are using and attempt to access it by possibly constructing another layer of abstraction which is Perl based. That layer could reference a printer API in W2K.

Here are some W2k specific references:

Print Services

HOWTO: Send Raw Data to a Printer by Using the Win32 API (Q138594)

You're going to have to reference Microsoft's MSDN, and other related resources to get a direct answer. Just keep in mind the direct approach is to find the API(s) which are referencing not only interfacing with the printer but also the graphics as well. You may need to tweak multiple values through some type of set() methods, which the API(s) offer.

I hope that is enough to get you started...

Enjoy! :)

-P0w3rK!d

  • Comment on Re: Sending a bitmap to a printer with a specific dpi