Results 1 to 4 of 4

Thread: Printer Defaults

  1. #1

    Thread Starter
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397

    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

  2. #2
    jim mcnamara
    Guest
    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/

  3. #3

    Thread Starter
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    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

  4. #4

    Thread Starter
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    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
  •  



Click Here to Expand Forum to Full Width