Network Printer

Oct 20, 2011 at 11:46 PM


First of all Thanks for this great project.

I'm trying to control a printer that is shared on another computer. I'd like to know how you sujest to do this, the only way I found to do it is adding it like this

"\\192.168.0.XXX\PRINTERS Name"

but I found that on the Jobdelete event I receive the PrintJob, but the PrinterName doesn't have the full address just the name. In my network we have several printers with the same name (diferent servers). I found that the full address is in the following object structure:



but if the name exceed 32 characters it's trimed. I tryed changing the definition at SpoolerStructs.vb 

#Region "DEVMODE STRUCTURE"    <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _   

Friend Class DEVMODE

<MarshalAs(UnmanagedType.ByValTStr, Sizeconst:=64)> Public pDeviceName As String



but It didin't work. can somebody help me ?

Thank you very much in advance.

PS:Sorry for my english.

Oct 31, 2011 at 7:58 PM

can anybody help me ?