Control to Choose Printer at Run-Time? 
Author Message
 Control to Choose Printer at Run-Time?

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



Tue, 10 Dec 2002 03:00:00 GMT  
 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




Wed, 11 Dec 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Choosing a printer during run-time (other than default) - Crystal Report 9 (CR 9)

2. Choosing table in run-time

3. getting run-time behavior of a contained control in a user control at design time

4. Saving properties of ActiveX control from design time to run time

5. ADO Data Control - Design Time/Run Time database locations

6. Design-time properties in Run-time Controls

7. Control code to only run at run-time.

8. Changing the queue of a networked printer at run time from VB

9. Run Time Error 28668 - Commondialog Printer Error

10. How can i select printer in CR8.5 in run time

11. How to select the printer at run time!!

12. Selecting Printer at Run time

 

 
Powered by phpBB® Forum Software