WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Printer Controller

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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:

  1. 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)
    

  2. 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
File Created: 2017:07:28:13:58:38
Last Updated: 2002:09:05:13:49:26