adding a printer driver... 
Author Message
 adding a printer driver...

OK I HAVE THE DRIVERS TO SUCCEED INTO LOADING BUT TRYING TO ADD A PDEPENDENTFILES...  I KEEPS GIVING ME THE ERROR 2 (FILE NOT FOUND)  i HAVE INSERTED THE PATH TO THE FILE (IT STILL ERRORS)  any HELP WOULD BE GREATLY APPRECIATED...

     Driver.cVersion = 2
     Driver.pName = "Lexmark Optra S 2450"
     Driver.pEnvironment = "Windows NT x86"
     Driver.pDriverPath = "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\lmpclnac.dll"
     Driver.pConfigFile = "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\lmpclnac.dll"
     Driver.pDataFile = "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\lmpclnac.dll"
     Driver.pDefaultDataType = ""
     Driver.pDependentFiles = "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LMPCLNA.DLL" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LMPCLNAC.DLL" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LMPCLANAX.DLL" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LMPCLNA$.INI" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LMPCLNA.HLP" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LMPCLNA.CNT" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\PTAPIW32.DLL" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\" + _
               "PTGUIW32.DLL" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\PRTESW32.DLL" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LEXMV95.HLP" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\DRVNPANT.DLL" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LEXBCE.DLL" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LEXBCES.EXE" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LEXLMPM.DLL" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LMPCLNPP.DLL" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\" + _
               "DRVNPANT.DLL" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LEXBCE.DLL" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LEXBCES.EXE" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LEXLMPM.DLL" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LEXMV95.HLP" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LMPCLNPP.DLL" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LMSTATUS.EXE" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LMPCLTHK.DLL" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\" + _
               "OPTRASBM.DLL" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LMSTATUS.HLP" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LMSTATUS.CNT" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LMSTATUS.EXE" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LMPCLTHK.DLL" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\OPTRASBM.DLL" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LMSTATUS.HLP" + vbNullChar + "C:\WINNT\SYSTEM32\SPOOL\DRIVERS\W32X86\2\LMSTATUS.CNT" + vbNullChar + vbNullChar
     Driver.pMonitorName = "Lexmark PCL Print Processor"
     Driver.pHelpFile = "lmpclna.hlp"
     ADD_DRIVER = AddPrinterDriver(vbNullString, 3, Driver)
     MsgBox ("DRIVER = " & ADD_DRIVER)

tHIS ONE IS GIVING ME AN ERROR OF 126 MODULE NOT FOUDN??? ANY CLUE???
     Ln = AddPrintProcessor(vbNullString, "Windows NT x86", "c:\winnt\system32\spool\drivers\w32x86\2\LMPCLNPP.DLL", "Lexmark PCL Print Processor")
     Serr = Err.LastDllError
     MsgBox ("error " & Serr)

Thanks David L. Gorman
MCSE, MCP + Internet, A+, 3Com, Hp, IBM, and Compaq Certified

AutoMation Programmer/Programmer
CompuCOM Systems Incorp.
1-609-224-5149
http://www.*-*-*.com/ ~polarbear/SIG.HTML

    Ok here is what i have see attached file for the program (vb5.0 sp3, with nt40)

    Now If I had Install the drivers (reboot the machine the Adding the Printers Work Fine and dandy)  Some Reason the Drivers is not installing correctly...  The Printer is a Lexmark Optra S 2450... If you need to see the drivers... I can send you the drivers tooo... Under Time Stresssss... any help would greatly be appreciated...

    I also tried using the rundll32 setupapi,InstallHinfSection LEXMARK_PRINTERS 128 theinffile.inf

    Thanks David L. Gorman
    MCSE, MCP + Internet, A+, 3Com, Hp, IBM, and Compaq Certified

    AutoMation Programmer/Programmer
    CompuCOM Systems Incorp.
    1-609-224-5149
    http://www.*-*-*.com/ ~polarbear/SIG.HTML



Sat, 21 Oct 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Adding a printer driver

2. Programmatically adding printer drivers

3. Add printer driver programmatically

4. Help, How to send printer command to printer bypassing printer driver in vb

5. Printers & printer drivers

6. Printer object / Fax Printer Driver

7. Printer object / Fax Printer Driver

8. Changing the printer capture and setting printer driver

9. How to change the printer driver for a defined printer in VB code

10. PROBLEM: Adding a printer via API, then creating a printer Share via API (source included)

11. Automating PostScript Printer Driver?

12. Installing Printer Driver at the time of Database Installation

 

 
Powered by phpBB® Forum Software