Jump to content
Sign in to follow this  

Printing pictures using Dll Calls

Recommended Posts


I have a program that I'm making in AutoIt where I need to print pictures out. I need this program to be very compatible(needs to work with Vista and preferably 64 bit systems), and I need to be able to print different pictures without calling a dialog box more than once.

I have some experience with DllCalls, so I started looking in MSDN. The functions I found (StartDoc, StartPage, EndPage, EndDoc) require a handle to a printer's device context. In order to get that, I need to call PrintDlgEx, but coding up this function in AutoIt looks way too complex for my skills. Could someone either code up a function that returns a handle to a printer's device context or point me in another direction?

Thanks very much.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this