Kanati (sp?) made an awesome DLL for printing, (really useful for my text stuff).
But I have seen a newbie post or two about printing images and some folks may not be aware how to do this without using a DLL or API calls.
If you just need to print a simple image that will fit on a normal sized piece of paper, you do not need to use a DLL or API calls.
I am doing a program where the user needs to be able to print the image they have made.
MS Paint allows command line options. You can run MS Paint from the command line with the Print switch and it will print the image directly to the default printer without opening MS Paint.
You need to grab the directory for MS Paint (system/system32, etc) and grab the directory that the image you want to print is in and the file name, then add the "/p" switch.
For example:
(I have tested this on 95,98/98se/NT/XP and it works fine)
I figured this may be helpful to a few folks.
But I have seen a newbie post or two about printing images and some folks may not be aware how to do this without using a DLL or API calls.
If you just need to print a simple image that will fit on a normal sized piece of paper, you do not need to use a DLL or API calls.
I am doing a program where the user needs to be able to print the image they have made.
MS Paint allows command line options. You can run MS Paint from the command line with the Print switch and it will print the image directly to the default printer without opening MS Paint.
You need to grab the directory for MS Paint (system/system32, etc) and grab the directory that the image you want to print is in and the file name, then add the "/p" switch.
For example:
ExecFile ("c:\windows\system32\mspaint.exe c:\tik.bmp /p")
(I have tested this on 95,98/98se/NT/XP and it works fine)
I figured this may be helpful to a few folks.