c# - Programmatically set printer to bypass the windows spooler -


is there way programmatically configure printer prints file (local file port) bypass spooler service , send data directly file ?

i have looked @ prnadmin.dll (nothing relevant there) , wmi (nothing relevant). ideas ? , no, don't want stop print spooler service in windows (xp sp3), make printer bypass it.

the printer_info_2 structure has parameter called printer_attribute_direct. can handle printer using openprinter, structure, change attribute (make sure bitwise , dont change of other existing attributes) , setprinter modified structure.

refer link see how can use setprinter. http://support.microsoft.com/kb/140285

hope helps. if so, please vote +1 answer :)


Comments

Popular posts from this blog

c# - BasicHttpBinding equivalent CustomBinding using WCF Client and PHP WebService -

sql server - python to mssql encoding problem -

java - SNMP4J General Variable Binding Error -