B
Brook Braswell via DotNetMonster.com
I am getting the dreaded Tried to access printer \\computername\sharedprinter with invalid settings.
I develop on a Win2K that is not a server and I am printing through an APS.net dll created using VBcode.
The dll works fine to any network laser printer that I set it to print to. When I roll out my project onto the Win2K Server, it does not print. Both boxes have the latest drivers. I could not find any permission differences but that does not mean there is not a difference.
The code is very simple and basic.
Private WithEvents mDoc As PrintDocument
....
....
....
mDoc = New PrintDocument
AddHandler mDoc.PrintPage, AddressOf pd_PrintPage
mDoc.PrinterSettings.PrinterName = PrinterName
mDoc.Print()
Can anyone tell me why there would be a difference?
Like I said, this works fine for my box but not the server.
I develop on a Win2K that is not a server and I am printing through an APS.net dll created using VBcode.
The dll works fine to any network laser printer that I set it to print to. When I roll out my project onto the Win2K Server, it does not print. Both boxes have the latest drivers. I could not find any permission differences but that does not mean there is not a difference.
The code is very simple and basic.
Private WithEvents mDoc As PrintDocument
....
....
....
mDoc = New PrintDocument
AddHandler mDoc.PrintPage, AddressOf pd_PrintPage
mDoc.PrinterSettings.PrinterName = PrinterName
mDoc.Print()
Can anyone tell me why there would be a difference?
Like I said, this works fine for my box but not the server.