RunDll32 error and pSetPrtinfo Fails
Keywords: pSetPrtinfo RunDll32
Question:
I used the following command to modify the HP 4000 printer driver to HP 4050 printer driver. After I run the following command, I got a rundll32 error message when I try to go into the HP 4000 printer properties.LJ4000="HP LaserJet 4000 Series PCL 6" LJ4050="HP LaserJet 4050 Series PCL 6" pSetPrtInfo(LJ4000, 5, LJ4050)Is Winbatch compatible with all drivers?Answer:
- The first parameter of psetprtInfo is the printername. Is "HP LaserJet 4000 Series PCL 6" the actual printername? Try using pGetPrtList to show you a list of valid printer names...
AddExtender("WWPRT34i.DLL") printers = pGetPrtList(0) AskItemList("Printers", printers, @tab, @sorted, @single)
- I think just switching the driver name is insufficient. I think you have to delete the printer and install a new one.
The theory is that the drivers are not compatible, requireing an install, not just a simple switch of a file name.
Article ID: W15074