-
Printer Defaults
Heres the Question: How can I control the Default Settings of a print driver with API.
History: I'm trying to print Tif images with Kodaks ImgEdit control,
But for some reason I can't seem to preset the Printers Width/Height to the ImageWidth/Height. Everything gets reset to the Printer Default.
Tried several Methods, The ImgEdit PrintImage seems to reset the printer to its defaults, no matter what I do.
Ultimately, I can have a bank of drivers, preset to various Widths/Heights/PaperTypes, but obviously thats just an "if all else fails" method.
-help?
-Lou
-
Lou -
There are quite a few sample code downloads from the people who built those controls --- check them out for yourself:
http://www.eistream.com/support_PRO/
-
Thanks Jim. So far, from your link, I already found a potential solution, using the Admin control, but their code is activating a dialog box, which is something I don't want to do. But, perhaps other samples will show how to access the printer properties directly.
Its too bad the printer object methods don't persist in relation to the ImgEdit print methods.
Still, Thanks for the heads up.
:)
-Lou
-
Nope. Even Microsoft admits the Image controls can't change the Printers Properties, such as page size.
But, it looks like SetPrinter will do the trick. Heres a link displaying
how to change the Default Printers Print Orientation, and since it hinges on the DEVMODE structure, It looks highly adjustable
to change any of the settings.
http://jinjohn.myrice.com/program/vbdigist/1022.htm
I'll test it tomorrow, hopefully it'll work.
-Lou