|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Default printerWe use a program that can only print to the default printer. Is there
code that would allow VB to change the default printer? wa***@aol.com wrote:
> We use a program that can only print to the default printer. Is there Absolutely. It's kinda buried within this sample:> code that would allow VB to change the default printer? http://vb.mvps.org/samples/PrnInfo I think it's in the CPrinter class module. Private Sub btnPrinterSetup_Click()
On Error GoTo ErrHandler cdlGen.Flags = cdlPDPrintSetup Printer.TrackDefault = True cdlGen.ShowPrinter MsgBox "New Default Printer: " & Printer.DeviceName Exit Sub ErrHandler: '//do something End Sub cdlGen is a CommonDialog control -- Show quoteHide quote<Harvey Triana /> Drilling View© Developer (52 oil wells in 2005) <wa***@aol.com> escribió en el mensaje news:pg65u1hmkleo8j8sdbcb70rfdd1b3pdqss@4ax.com... > We use a program that can only print to the default printer. Is there > code that would allow VB to change the default printer? > >
KeyPress event help needed
module Does this serial port device exist? Text box - Change/Lost Focus use VB6 Thesaurus & internationalisation Installing VB5 Application Causing Hardware Problems? Time difference calculation Intercepting Ctrl+Alt+Del Outlook Style Date Grouping Function result differs from same code for subroutine |
|||||||||||||||||||||||