Home
Virtual Image Printer DriverMiraplacid Publisher converts documents to images
Virtual Text Printer DriverMiraplacid Text Driver extracts text from documents
Miraplacid Data Viewer / Binary DOMMiraplacid Data Viewer - access to internal structure of a binary file
Common:   Login | Rules of forum | Register
Management:  New topic | Close topic | Move topic | Delete topic
  

Miraplacid Forum >> Virtual Printer Drivers >> capture printing from MS-DOS programsModerator:Cerberus

Author Topic:  capture printing from MS-DOS programs
remy_vrs
Member

From: Romania
Email
posted 2003-10-30 04:11:44 Reply -Delete

how do i capture printing from MS-DOS. i have managed to capture the job send to the printer from an Windows aplication with the help of MIRAPLACID TEXT DRIVER but i can't manage to capture the job send by an MS-DOS based program. please help with that. it is really urgent.

Elden
Member

Email
posted 2005-09-14 16:11:37 Reply -Delete

Well, for any windows printer driver, as long as I make it shared on the network, and create a batch program which contains:

net use lpt1: /delete
net use lpt1: \\Your_Computer_Name\SharedPrinter

After you run this batch program, you should be able to print from a DOS program to LPT1. Try it out from EDIT, open a text file, and print it.

But, the problem I have right now is that when I did the same thing to Miraplacid Text Driver, it didn't work. The Event Viewer contains an error:

The description for Event ID ( 6161 ) in Source ( Print ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Local Downlevel Document, whse, Miraplacid Text Driver, NT EMF 1.006, 57, 32, 0, 0, \\192.168.10.107, 259 (0x103), .

Any idea?

- Elden

Cerberus
Moderator

Web-page
Email
posted 2005-09-22 09:41:43 Reply -Delete

Elden,

This is very interesting method of capturing DOS outputs.
Version 4.3 were not able to do this.
We have enabled this feature in version 4.4:

http://www.miraplacid.com/downloads/mtd.exe

Visit its homepage

Elden
Member

Email
posted 2005-09-22 13:50:49 Reply -Delete

I just installed 4.4. It prompted me to uninstall my old 4.3 first, then it completed 4.4 installation successfully.

But it appears that I am still getting the same error in the Event Viewer.

Any registry I need update manually?

Can you give me a call? (804)-245-6358

Thanks.

- Elden

Elden
Member

Email
posted 2005-09-22 14:39:33 Reply -Delete

By the way. I am using a WinXP Professional with local Administrator access.

Thanks.

- Elden

Elden
Member

Email
posted 2005-09-22 15:10:01 Reply -Delete

The error in the Event Viewer is the following:

The description for Event ID ( 6161 ) in Source ( Print ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Local Downlevel Document, whse, Miraplacid Text Driver, NT EMF 1.006, 13153, 32, 0, 0, \\192.168.10.107, 259 (0x103), .

Just to provide you more info ...

- Elden

Elden
Member

Email
posted 2005-09-22 15:35:13 Reply -Delete

Attaching the content of mtdsetup.txt:

09/22/2005 15:55:17.006 : OS Windows NT detected
09/22/2005 15:55:17.006 : OpenDriver
09/22/2005 15:55:17.225 : OpenDriver :: found 'Generic / Text Only' printer
09/22/2005 15:55:17.225 : OpenDriver :: found 'Okidata ML 520' printer
09/22/2005 15:55:17.225 : OpenDriver :: found 'Microsoft Office Document Image Writer Driver' printer
09/22/2005 15:55:17.225 : OpenDriver :: FAILED
09/22/2005 15:55:17.225 : GetProgramFiles
09/22/2005 15:55:17.318 : GetProgramFiles - C:\Program Files\
09/22/2005 15:55:17.318 : GetModuleFolder
09/22/2005 15:55:17.318 : GetModuleFolder - C:\Download\
09/22/2005 15:55:17.318 : GetSystemDirectory
09/22/2005 15:55:17.318 : GetSystemDirectory - C:\WINDOWS\system32\
09/22/2005 15:55:17.318 : GetPrinterDriverDirectoryW
09/22/2005 15:55:17.318 : GetPrinterDriverDirectory - C:\WINDOWS\System32\spool\DRIVERS\W32X86\
09/22/2005 15:55:17.318 : GetSpecialFolder(9)
09/22/2005 15:55:17.350 : GetSpecialFolder(9) - 'C:\Documents and Settings\whse\SendTo\'
09/22/2005 15:55:17.350 : GetSpecialFolder(25)
09/22/2005 15:55:17.350 : GetSpecialFolder(25) - 'C:\Documents and Settings\All Users\Desktop\'
09/22/2005 15:55:17.350 : GetSpecialFolder(23)
09/22/2005 15:55:17.350 : GetSpecialFolder(23) - 'C:\Documents and Settings\All Users\Start Menu\Programs\'
09/22/2005 15:55:17.350 : GetModuleName
09/22/2005 15:55:17.350 : GetModuleName - mtd.exe
09/22/2005 15:55:17.350 : Initialize Done
09/22/2005 15:55:17.381 : GetResource(2000)
09/22/2005 15:55:19.583 : GetResource(2000)
09/22/2005 15:55:19.599 : GetResource(2002)
09/22/2005 15:55:22.176 : GetResource(2000)
09/22/2005 15:55:26.644 : GetResource(2000)
09/22/2005 15:55:26.659 : INSTALLATION...
09/22/2005 15:55:26.659 : MakeFolder(C:\Program Files\Miraplacid\TextDriver)
09/22/2005 15:55:26.675 : SaveFileFromResource(2002,C:\Program Files\Miraplacid\TextDriver\license.txt)
09/22/2005 15:55:26.675 : GetResource(2002)
09/22/2005 15:55:26.691 : SaveFileFromResource(2003,C:\Program Files\Miraplacid\TextDriver\bstr_c.dll)
09/22/2005 15:55:26.691 : GetResource(2003)
09/22/2005 15:55:26.753 : RegisterComponent(C:\Program Files\Miraplacid\TextDriver\bstr_c.dll)
09/22/2005 15:55:26.956 : SaveFileFromResource(2004,C:\Program Files\Miraplacid\TextDriver\mtd_core.exe)
09/22/2005 15:55:26.956 : GetResource(2004)
09/22/2005 15:55:27.081 : RegisterComponent(C:\Program Files\Miraplacid\TextDriver\mtd_core.exe)
09/22/2005 15:55:27.081 : RunApp(c:\program files\miraplacid\textdriver\mtd_core.exe /RegServer)
09/22/2005 15:55:27.472 : SaveFileFromResource(2005,C:\Program Files\Miraplacid\TextDriver\mtd_ui.exe)
09/22/2005 15:55:27.472 : GetResource(2005)
09/22/2005 15:55:27.862 : SaveFileFromResource(2006,C:\Program Files\Miraplacid\TextDriver\mtd4.key)
09/22/2005 15:55:27.862 : GetResource(2006)
09/22/2005 15:55:27.893 : SaveFileFromResource(2007,C:\Program Files\Miraplacid\TextDriver\readme.txt)
09/22/2005 15:55:27.893 : GetResource(2007)
09/22/2005 15:55:27.925 : SaveFileFromResource(2008,C:\Program Files\Miraplacid\TextDriver\mtd_plugin_formatted.dll)
09/22/2005 15:55:27.925 : GetResource(2008)
09/22/2005 15:55:27.972 : RegisterComponent(C:\Program Files\Miraplacid\TextDriver\mtd_plugin_formatted.dll)
09/22/2005 15:55:28.065 : SaveFileFromResource(2009,C:\Program Files\Miraplacid\TextDriver\mtd_plugin_2d.dll)
09/22/2005 15:55:28.065 : GetResource(2009)
09/22/2005 15:55:28.112 : RegisterComponent(C:\Program Files\Miraplacid\TextDriver\mtd_plugin_2d.dll)
09/22/2005 15:55:28.206 : SaveFileFromResource(2010,C:\Program Files\Miraplacid\TextDriver\mtd_plugin_plain.dll)
09/22/2005 15:55:28.206 : GetResource(2010)
09/22/2005 15:55:28.253 : RegisterComponent(C:\Program Files\Miraplacid\TextDriver\mtd_plugin_plain.dll)
09/22/2005 15:55:28.331 : SaveFileFromResource(2011,C:\Program Files\Miraplacid\TextDriver\mtd_plugin_xml.dll)
09/22/2005 15:55:28.331 : GetResource(2011)
09/22/2005 15:55:28.378 : RegisterComponent(C:\Program Files\Miraplacid\TextDriver\mtd_plugin_xml.dll)
09/22/2005 15:55:28.487 : SaveFileFromResource(2012,C:\Program Files\Miraplacid\TextDriver\tp_file.dll)
09/22/2005 15:55:28.487 : GetResource(2012)
09/22/2005 15:55:28.534 : RegisterComponent(C:\Program Files\Miraplacid\TextDriver\tp_file.dll)
09/22/2005 15:55:28.643 : SaveFileFromResource(2013,C:\Program Files\Miraplacid\TextDriver\tp_ftp.dll)
09/22/2005 15:55:28.643 : GetResource(2013)
09/22/2005 15:55:28.721 : RegisterComponent(C:\Program Files\Miraplacid\TextDriver\tp_ftp.dll)
09/22/2005 15:55:28.799 : SaveFileFromResource(2014,C:\Program Files\Miraplacid\TextDriver\tp_http.dll)
09/22/2005 15:55:28.799 : GetResource(2014)
09/22/2005 15:55:28.893 : RegisterComponent(C:\Program Files\Miraplacid\TextDriver\tp_http.dll)
09/22/2005 15:55:29.034 : SaveFileFromResource(2015,C:\Program Files\Miraplacid\TextDriver\tp_prn.dll)
09/22/2005 15:55:29.034 : GetResource(2015)
09/22/2005 15:55:29.112 : RegisterComponent(C:\Program Files\Miraplacid\TextDriver\tp_prn.dll)
09/22/2005 15:55:29.174 : SaveFileFromResource(2016,C:\Program Files\Miraplacid\TextDriver\tp_clipboard.dll)
09/22/2005 15:55:29.174 : GetResource(2016)
09/22/2005 15:55:29.206 : RegisterComponent(C:\Program Files\Miraplacid\TextDriver\tp_clipboard.dll)
09/22/2005 15:55:29.284 : SaveFileFromResource(2017,C:\Program Files\Miraplacid\TextDriver\mtdcfg.ini)
09/22/2005 15:55:29.284 : GetResource(2017)
09/22/2005 15:55:29.315 : MakeFolder(C:\Program Files\Miraplacid\TextDriver\doc)
09/22/2005 15:55:29.315 : SaveFileFromResource(2018,C:\Program Files\Miraplacid\TextDriver\doc\mtdhelp.html)
09/22/2005 15:55:29.315 : GetResource(2018)
09/22/2005 15:55:29.331 : SaveFileFromResource(2019,C:\Program Files\Miraplacid\TextDriver\doc\main.css)
09/22/2005 15:55:29.331 : GetResource(2019)
09/22/2005 15:55:29.331 : SaveFileFromResource(2020,C:\Program Files\Miraplacid\TextDriver\doc\mtd3prn1.gif)
09/22/2005 15:55:29.331 : GetResource(2020)
09/22/2005 15:55:29.346 : SaveFileFromResource(2021,C:\Program Files\Miraplacid\TextDriver\doc\mtd3prn2.gif)
09/22/2005 15:55:29.346 : GetResource(2021)
09/22/2005 15:55:29.409 : SaveFileFromResource(2022,C:\Program Files\Miraplacid\TextDriver\doc\mtd3tray.gif)
09/22/2005 15:55:29.409 : GetResource(2022)
09/22/2005 15:55:29.424 : SaveFileFromResource(2023,C:\Program Files\Miraplacid\TextDriver\doc\mtdbdone.jpg)
09/22/2005 15:55:29.424 : GetResource(2023)
09/22/2005 15:55:29.456 : SaveFileFromResource(2024,C:\Program Files\Miraplacid\TextDriver\doc\mtdbhide.jpg)
09/22/2005 15:55:29.456 : GetResource(2024)
09/22/2005 15:55:29.471 : SaveFileFromResource(2025,C:\Program Files\Miraplacid\TextDriver\doc\mtdbnew.jpg)
09/22/2005 15:55:29.471 : GetResource(2025)
09/22/2005 15:55:29.487 : SaveFileFromResource(2026,C:\Program Files\Miraplacid\TextDriver\doc\mtdbnext.jpg)
09/22/2005 15:55:29.487 : GetResource(2026)
09/22/2005 15:55:29.502 : SaveFileFromResource(2027,C:\Program Files\Miraplacid\TextDriver\doc\mtdbprev.jpg)
09/22/2005 15:55:29.502 : GetResource(2027)
09/22/2005 15:55:29.502 : SaveFileFromResource(2028,C:\Program Files\Miraplacid\TextDriver\doc\mtdbrefresh.jpg)
09/22/2005 15:55:29.502 : GetResource(2028)
09/22/2005 15:55:29.502 : SaveFileFromResource(2029,C:\Program Files\Miraplacid\TextDriver\doc\mtdbsave2.jpg)
09/22/2005 15:55:29.502 : GetResource(2029)
09/22/2005 15:55:29.518 : SaveFileFromResource(2030,C:\Program Files\Miraplacid\TextDriver\doc\mtdbsave.jpg)
09/22/2005 15:55:29.518 : GetResource(2030)
09/22/2005 15:55:29.518 : SaveFileFromResource(2031,C:\Program Files\Miraplacid\TextDriver\doc\mtdclose.gif)
09/22/2005 15:55:29.518 : GetResource(2031)
09/22/2005 15:55:29.518 : SaveFileFromResource(2032,C:\Program Files\Miraplacid\TextDriver\doc\mtdinst.html)
09/22/2005 15:55:29.518 : GetResource(2032)
09/22/2005 15:55:29.534 : SaveFileFromResource(2033,C:\Program Files\Miraplacid\TextDriver\doc\mtdprog.html)
09/22/2005 15:55:29.534 : GetResource(2033)
09/22/2005 15:55:29.534 : SaveFileFromResource(2034,C:\Program Files\Miraplacid\TextDriver\doc\mtdreg.gif)
09/22/2005 15:55:29.534 : GetResource(2034)
09/22/2005 15:55:29.596 : SaveFileFromResource(2035,C:\Program Files\Miraplacid\TextDriver\doc\mtdsetup1.gif)
09/22/2005 15:55:29.596 : GetResource(2035)
09/22/2005 15:55:29.596 : SaveFileFromResource(2036,C:\Program Files\Miraplacid\TextDriver\doc\mtdsetup2.gif)
09/22/2005 15:55:29.596 : GetResource(2036)
09/22/2005 15:55:29.659 : SaveFileFromResource(2037,C:\Program Files\Miraplacid\TextDriver\doc\mtdsetup3.gif)
09/22/2005 15:55:29.659 : GetResource(2037)
09/22/2005 15:55:29.705 : SaveFileFromResource(2038,C:\Program Files\Miraplacid\TextDriver\doc\mtdsetup4.gif)
09/22/2005 15:55:29.705 : GetResource(2038)
09/22/2005 15:55:29.737 : SaveFileFromResource(2039,C:\Program Files\Miraplacid\TextDriver\doc\mtdsetup5.gif)
09/22/2005 15:55:29.737 : GetResource(2039)
09/22/2005 15:55:29.752 : SaveFileFromResource(2040,C:\Program Files\Miraplacid\TextDriver\doc\mtdsetup6.gif)
09/22/2005 15:55:29.752 : GetResource(2040)
09/22/2005 15:55:29.784 : SaveFileFromResource(2041,C:\Program Files\Miraplacid\TextDriver\doc\mtdsetup7.gif)
09/22/2005 15:55:29.784 : GetResource(2041)
09/22/2005 15:55:29.799 : SaveFileFromResource(2042,C:\Program Files\Miraplacid\TextDriver\doc\mtdshot2d.jpg)
09/22/2005 15:55:29.799 : GetResource(2042)
09/22/2005 15:55:29.799 : SaveFileFromResource(2043,C:\Program Files\Miraplacid\TextDriver\doc\mtdshot3d.jpg)
09/22/2005 15:55:29.799 : GetResource(2043)
09/22/2005 15:55:29.846 : SaveFileFromResource(2044,C:\Program Files\Miraplacid\TextDriver\doc\mtdscripts.zip)
09/22/2005 15:55:29.846 : GetResource(2044)
09/22/2005 15:55:29.862 : SaveFileFromResource(2046,C:\WINDOWS\system32\mtd_localmon.dll)
09/22/2005 15:55:29.862 : GetResource(2046)
09/22/2005 15:55:29.893 : SaveFileFromResource(2047,C:\WINDOWS\system32\mtd_localui.dll)
09/22/2005 15:55:29.893 : GetResource(2047)
09/22/2005 15:55:29.924 : SaveFileFromResource(2048,C:\WINDOWS\system32\spool\prtprocs\w32x86\miraprint.dll)
09/22/2005 15:55:29.924 : GetResource(2048)
09/22/2005 15:55:29.955 : MakeFolder(C:\Program Files\Miraplacid\TextDriver\install)
09/22/2005 15:55:29.955 : CopyFile(C:\Download\mtd.exe,C:\Program Files\Miraplacid\TextDriver\install\mtd.exe)
09/22/2005 15:55:30.080 : SaveFileFromResource(2049,C:\WINDOWS\System32\spool\DRIVERS\W32X86\mtd_stdnames.gpd)
09/22/2005 15:55:30.080 : GetResource(2049)
09/22/2005 15:55:30.096 : SaveFileFromResource(2050,C:\WINDOWS\System32\spool\DRIVERS\W32X86\mtd_unidrv.dll)
09/22/2005 15:55:30.096 : GetResource(2050)
09/22/2005 15:55:30.158 : SaveFileFromResource(2051,C:\WINDOWS\System32\spool\DRIVERS\W32X86\mtd_unidrv.hlp)
09/22/2005 15:55:30.158 : GetResource(2051)
09/22/2005 15:55:30.174 : SaveFileFromResource(2052,C:\WINDOWS\System32\spool\DRIVERS\W32X86\mtd_unidrvui.dll)
09/22/2005 15:55:30.174 : GetResource(2052)
09/22/2005 15:55:30.237 : SaveFileFromResource(2053,C:\WINDOWS\System32\spool\DRIVERS\W32X86\mtd_unires.dll)
09/22/2005 15:55:30.237 : GetResource(2053)
09/22/2005 15:55:30.502 : SaveFileFromResource(2054,C:\WINDOWS\System32\spool\DRIVERS\W32X86\mtdnt4.dll)
09/22/2005 15:55:30.502 : GetResource(2054)
09/22/2005 15:55:30.533 : SaveFileFromResource(2055,C:\WINDOWS\System32\spool\DRIVERS\W32X86\mtdrvui.dll)
09/22/2005 15:55:30.533 : GetResource(2055)
09/22/2005 15:55:30.690 : SaveFileFromResource(2056,C:\WINDOWS\System32\spool\DRIVERS\W32X86\mtd4.gpd)
09/22/2005 15:55:30.690 : GetResource(2056)
09/22/2005 15:55:30.705 : SaveFileFromResource(2057,C:\WINDOWS\System32\spool\DRIVERS\W32X86\mtd4.ini)
09/22/2005 15:55:30.705 : GetResource(2057)
09/22/2005 15:55:30.705 : CreateLink(C:\Documents and Settings\All Users\Desktop\Miraplacid Text Driver.lnk)
09/22/2005 15:55:31.424 : CreateLink(C:\Documents and Settings\whse\SendTo\Miraplacid Text Driver.lnk)
09/22/2005 15:55:31.439 : MakeFolder(C:\Documents and Settings\All Users\Start Menu\Programs\Miraplacid Text Driver)
09/22/2005 15:55:31.455 : CreateLink(C:\Documents and Settings\All Users\Start Menu\Programs\Miraplacid Text Driver\Miraplacid Text Driver.lnk)
09/22/2005 15:55:31.471 : CreateLink(C:\Documents and Settings\All Users\Start Menu\Programs\Miraplacid Text Driver\User Manual.lnk)
09/22/2005 15:55:31.486 : CreateLink(C:\Documents and Settings\All Users\Start Menu\Programs\Miraplacid Text Driver\Scripting Manual.lnk)
09/22/2005 15:55:31.502 : CreateLink(C:\Documents and Settings\All Users\Start Menu\Programs\Miraplacid Text Driver\Installation Manual.lnk)
09/22/2005 15:55:31.564 : AddPort
09/22/2005 15:55:31.611 : Load winspool done!
09/22/2005 15:55:31.689 : Load monitor done!
09/22/2005 15:55:31.689 : Get InitMonitorFun done!
09/22/2005 15:55:31.705 : AddMonitor done!
09/22/2005 15:55:31.705 : InitPortMonFun done!
09/22/2005 15:55:31.705 : AddDriver
09/22/2005 15:55:59.759 : AddDriver :: AddPrinterDriver
09/22/2005 15:55:59.900 : Add PrintProcessor Done
09/22/2005 15:56:02.821 : CreateRegistryFolder: Software\Miraplacid\TextDriver
09/22/2005 15:56:02.821 : CreateRegistryValue: DriverPath
09/22/2005 15:56:02.821 : CreateRegistryValue: LogFile
09/22/2005 15:56:02.821 : CreateRegistryValue: LogLevel
09/22/2005 15:56:02.821 : CreateRegistryValue: Cfs
09/22/2005 15:56:02.821 : CreateRegistryValue: CurrentUI
09/22/2005 15:56:02.821 : CreateRegistryValue: LogMutexName
09/22/2005 15:56:02.836 : CreateRegistryFolder: Software\Microsoft\Windows\CurrentVersion\Uninstall\MiraplacidTextDriver4.0
09/22/2005 15:56:02.836 : CreateRegistryValue: DisplayName
09/22/2005 15:56:02.836 : CreateRegistryValue: DisplayVersion
09/22/2005 15:56:02.836 : CreateRegistryValue: HelpLink
09/22/2005 15:56:02.836 : CreateRegistryValue: InstallLocation
09/22/2005 15:56:02.836 : CreateRegistryValue: TextDriver
09/22/2005 15:56:02.836 : CreateRegistryValue: UninstallString
09/22/2005 15:56:02.836 : CreateRegistryValue: URLInfoAbout
09/22/2005 15:56:02.836 : CreateRegistryValue: URLUpdateInfo
09/22/2005 15:56:02.836 : CreateRegistryValue: VersionMajor
09/22/2005 15:56:02.852 : CreateRegistryValue: VersionMinor
09/22/2005 15:56:02.868 : CreateLink(C:\Documents and Settings\All Users\Start Menu\Programs\Miraplacid Text Driver\Uninstall.lnk)
09/22/2005 15:56:03.055 : CreateLink(C:\Documents and Settings\All Users\Start Menu\Programs\Miraplacid Text Driver\Miraplacid Text Driver HomePage.lnk)
09/22/2005 15:56:03.446 : PrinterDisableOptimization
09/22/2005 15:56:03.492 : PrinterDisableOptimization :: Create optimization values
09/22/2005 15:56:03.492 : INSTALLATION COMPLETED
09/22/2005 15:56:10.350 : SetPrinterPermissions
09/22/2005 15:56:10.350 : SetPermission
09/22/2005 15:56:13.349 : SetPermission

Elden
Member

Email
posted 2005-09-22 22:23:52 Reply -Delete

After more research, I noticed something new.

1) Pause the MTD printer
2) Print from DOS (after running that batch program)
3) One print job appears in the MTD printer queue
4) Resume the printer
5) Print job gone, and one error in Event Viewer

So, MTD did capture the print job, however, during the printer pause, by comparing the spooled files from DOS Edit and from Windows Notepad,
I also noticed the DOS Edit spool file contains almost all pure ASCII characters, vs the Notepad spool file contains more control characters at the beginning.

I have tried above on 2 seperate machines, a WinXP and a Win2000. Can you tell me which environment you have tested with this DOS Print feature?

Thanks.

- Elden

Cerberus
Moderator

Web-page
Email
posted 2005-09-26 04:02:16 Reply -Delete

Elden,

Thank you for information.
Regarding DOS printing, our information was incomplete.
Please, look for complete recipe here.

Regarding strange event in your log.
Our systems do not generate it.
Looks like some dll in your print sybsystem does not have necessary message resources.
Text Driver itself does not generate any events.

Elden
Member

Email
posted 2005-09-27 14:50:48 Reply -Delete

Just tried the additional steps in Print Processor, it is working !!!!!
Thanks so much.

abel
Member

From: zimbabwe
Email
posted 2012-07-10 02:12:50 Reply -Delete

Can i use "net use lpt1:" command on a stand alone PC?

Cerberus
Moderator

Web-page
Email
posted 2012-07-15 04:54:44 Reply -Delete

abel,

Yes, and, even more, you can use such a shared printer at the same PC.

abel
Member

From: zimbabwe
Email
posted 2012-09-18 08:16:25 Reply -Delete

How do I use the "net use Lpt:" command on a stand alone PC with a printer attached onto it? What's the full syntax?

abel
Member

From: zimbabwe
Email
posted 2012-09-18 08:29:35 Reply -Delete

Hi,

Iam intending to produce PDF invoices from pre-saved Text Invoices. In this example, Iam processing 2 Text Invoices only. In live run I shall process over a thousand invoices.

Step 1. I read a pre-saved text invoice using VB6
Step 2. Merge the text invoice with an image (logo)
Step 3. Convert the text invoice to PDF file. Output Path = C:\ECO-TEMP
Output FileName = ECO-SIGN

Step 4. I then send the PDF Invoices to the printer (Laser Printer) and they get printed out.

The job is done successfully and Iam a happy man!

The 1st Invoice number (10010) and the 2nd number (10011) are displayed respectively correct.

Using the same method as explained above, my problem arise when I process, say 10 invoices numbering from 10010 to 10019.

The output gives me the first five Invoices with the same INV Number (10010). The next 4 invoices have 10015
and the last one has got the correct number (20019). In short, 1st Invoice (10010) is repeated 5 times including the all its details etc. INV 10015 is repeated 4 times & the last one once (not repeated).

Whre am I getting it wrong? Iam afraid that this might happen if I process over a thousand invoices when run live.

I do appreciate your help.

I have saved the log file which should contain the error report etc. dont know how to upload it.

Abel K

Anders2020
Member

From: Zimbabwe
Email
posted 2013-06-04 07:16:25 Reply -Delete


1 Share Text Driver on the network.
2 On PC with your DOS program, create the following batch file:


net use lpt1: /delete
net use lpt1: \\Your_Computer_Name\SharedPrinter

3 Run this batch file.
4 Open Advanced Settings software.
5 Set Datatype to TEXT and press OK.

I am stuck at 4 I do not use the UI in the Text Driver SDK
how do set Text?
Is it the same as using Print Processor in Windows 7 Print Dialog and setting it to "TEXT"

Anders2020
Member

From: Zimbabwe
Email
posted 2013-06-04 07:16:44 Reply -Delete


1 Share Text Driver on the network.
2 On PC with your DOS program, create the following batch file:


net use lpt1: /delete
net use lpt1: \\Your_Computer_Name\SharedPrinter

3 Run this batch file.
4 Open Advanced Settings software.
5 Set Datatype to TEXT and press OK.

I am stuck at 4 I do not use the UI in the Text Driver SDK
how do set Text?
Is it the same as using Print Processor in Windows 7 Print Dialog and setting it to "TEXT"

Your message:
Name, password:
Go to category:  

Technical Support

Copyright © Miraplacid, 2003 - 2014