This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
There some sort of strange problem with Notes and picking up the default printer. Here’s what works for me.
First, I use Notes 7.03/8.01 or higher. With these versions the "Print" method of NotesUIDocument has a new parameter called printerTitle which is the name of the printer you want to use. Read about it here... http://www-01.ibm.com/support/docview.wss?rs=899&uid=swg21266977
When you use the printerTitle parameter, it changes the printer for Notes. To get Notes to recognize the default printer again, you have to change the default printer to something other than the default printer, and then change it back to the default printer. So it looks something like this...
Dim objWMIService As Variant
Dim wsh As Variant
Dim colPrinters As Variant
Dim defaultprinter as String
Set objWMIService = GetObject( "winmgmts:\\.\root\cimv2" )
Set colPrinters = objWMIService.ExecQuery( "Select * From Win32_Printer Where Default = TRUE" )
defaultprinter = colPrinters.ItemIndex( 0 ).name