|
-
Nov 19th, 2001, 09:08 AM
#1
Thread Starter
pathfinder
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
-
Nov 19th, 2001, 01:43 PM
#2
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/
-
Nov 19th, 2001, 03:07 PM
#3
Thread Starter
pathfinder
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
-
Nov 19th, 2001, 05:49 PM
#4
Thread Starter
pathfinder
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|