
Control to Choose Printer at Run-Time?
You dont need a special control for this
VB has a Printer object. This is the default printer. There is also a
Printers collection. You can set the default printer object to any one of
the printers collection:
Set Printer=Printers(0)
This sets my default printer as the first printer on my system. Each printer
has a number of properties to identify which printer it is, DeviceName (The
name of the printer) Port (Lpt1 or Network address etc)
As for printing a tiff, if you need something to do this, chekc out the
Windows Imaging Controls (Look in your Components list for "Kodak" or
"Wang".) these controls ship with Windows9x and are free. They work well
with tiffs.
Use the ImgEdit control. :
ImgEdit1.Image = "C:\Windows\aaa.tif"
ImgEdit1.PrintImage
Quote:
> I am in need of a control that will let me set my default system printer
> programmatically at run-time. I need to print a TIFF image to a printer
> that is to be specified at run-time - without user intervention. Is there
a
> way to do this? Thanks in advance.
> Best regards,
> Corey Ellsworth