A Windows 98 & ME forum. Win98banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Win98banter forum » Windows 98 » General
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

Direct Printing to LPT1 is slow



 
 
Thread Tools Display Modes
  #1  
Old February 18th 05, 12:19 PM
Balbino Caballero
external usenet poster
 
Posts: n/a
Default Direct Printing to LPT1 is slow

Hi everybody...

I've a Dell Optiplex GX1 with Windows 98SE, 64MB Ram.
I've developed a program that writes data directly to the LPT1 Port,
bypassing the installing printers on the system.

On other computers with Windows 98SE, it works fine. With the computer
described above, from Windows it prints, but when the program try to print to
LPT1 Port, the task is done but in "slow motion", one line at a time.

This computer was working with the program for at least 2 years and reports
no problems like this. I've already reinstalled Windows 98 to no avail.
I've already check disk fragmentation, port conflicts, reinstalled printer
drivers (I did it with some hope to solve this problem), also copied again
the lpt.vxd directly from the CD (with the extract utility). Also done a
Windows Update and nothing... The problem is only reported when printing
from any program that prints directly to the LPT1 Port. An example of what
looks alike my routine:

port = fileopen("lpt1") //Open the ports and wait for data
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
fileclose(port) //End the printjob

Please help is needed ASAP.. This computer is used in the payroll
department, and is used to print payments by check.
  #2  
Old February 18th 05, 01:15 PM
Haggis
external usenet poster
 
Posts: n/a
Default


"Balbino Caballero" Balbino wrote in
message ...
Hi everybody...

I've a Dell Optiplex GX1 with Windows 98SE, 64MB Ram.
I've developed a program that writes data directly to the LPT1 Port,
bypassing the installing printers on the system.

On other computers with Windows 98SE, it works fine. With the computer
described above, from Windows it prints, but when the program try to print
to
LPT1 Port, the task is done but in "slow motion", one line at a time.

This computer was working with the program for at least 2 years and
reports
no problems like this. I've already reinstalled Windows 98 to no avail.
I've already check disk fragmentation, port conflicts, reinstalled
printer
drivers (I did it with some hope to solve this problem), also copied again
the lpt.vxd directly from the CD (with the extract utility). Also done a
Windows Update and nothing... The problem is only reported when printing
from any program that prints directly to the LPT1 Port. An example of
what
looks alike my routine:

port = fileopen("lpt1") //Open the ports and wait for data
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
fileclose(port) //End the printjob

Please help is needed ASAP.. This computer is used in the payroll
department, and is used to print payments by check.


do the BIOS settings for LPT1 ...SPP,EPP have any effect on the performance
?


  #3  
Old February 18th 05, 01:34 PM
Ingeborg
external usenet poster
 
Posts: n/a
Default

"=?Utf-8?B?QmFsYmlubyBDYWJhbGxlcm8=?=" Balbino
wrote in
:

Hi everybody...

I've a Dell Optiplex GX1 with Windows 98SE, 64MB Ram.
I've developed a program that writes data directly to the LPT1 Port,
bypassing the installing printers on the system.

On other computers with Windows 98SE, it works fine. With the
computer described above, from Windows it prints, but when the program
try to print to LPT1 Port, the task is done but in "slow motion", one
line at a time.

This computer was working with the program for at least 2 years and
reports no problems like this. I've already reinstalled Windows 98 to
no avail. I've already check disk fragmentation, port conflicts,
reinstalled printer drivers (I did it with some hope to solve this
problem), also copied again the lpt.vxd directly from the CD (with the
extract utility). Also done a Windows Update and nothing... The
problem is only reported when printing from any program that prints
directly to the LPT1 Port. An example of what looks alike my
routine:

port = fileopen("lpt1") //Open the ports and wait for data
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
fileclose(port) //End the printjob

Please help is needed ASAP.. This computer is used in the payroll
department, and is used to print payments by check.


Maybe the program portmon from
www.sysinternals.com can give you further
information?
  #4  
Old February 18th 05, 02:09 PM
Balbino Caballero
external usenet poster
 
Posts: n/a
Default


Let me check on PORTMON....

and on Bios, i've already change the configuration TO ecp, epp, spp, and
still the same...

I also thought it was a printer problem, but using the same printer on
another computer is doing the same thing is ok...

Also change the interface cable between the lpt1 port and the printer (the
printer cable) and still nothing... using the same cable with other
computer/printer works....

"Balbino Caballero" wrote:

Hi everybody...

I've a Dell Optiplex GX1 with Windows 98SE, 64MB Ram.
I've developed a program that writes data directly to the LPT1 Port,
bypassing the installing printers on the system.

On other computers with Windows 98SE, it works fine. With the computer
described above, from Windows it prints, but when the program try to print to
LPT1 Port, the task is done but in "slow motion", one line at a time.

This computer was working with the program for at least 2 years and reports
no problems like this. I've already reinstalled Windows 98 to no avail.
I've already check disk fragmentation, port conflicts, reinstalled printer
drivers (I did it with some hope to solve this problem), also copied again
the lpt.vxd directly from the CD (with the extract utility). Also done a
Windows Update and nothing... The problem is only reported when printing
from any program that prints directly to the LPT1 Port. An example of what
looks alike my routine:

port = fileopen("lpt1") //Open the ports and wait for data
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
fileclose(port) //End the printjob

Please help is needed ASAP.. This computer is used in the payroll
department, and is used to print payments by check.

  #5  
Old February 18th 05, 02:32 PM
Haggis
external usenet poster
 
Posts: n/a
Default


"Balbino Caballero" Balbino wrote in
message ...

Let me check on PORTMON....

and on Bios, i've already change the configuration TO ecp, epp, spp, and
still the same...

I also thought it was a printer problem, but using the same printer on
another computer is doing the same thing is ok...

Also change the interface cable between the lpt1 port and the printer (the
printer cable) and still nothing... using the same cable with other
computer/printer works....

"Balbino Caballero" wrote:

Hi everybody...

I've a Dell Optiplex GX1 with Windows 98SE, 64MB Ram.
I've developed a program that writes data directly to the LPT1 Port,
bypassing the installing printers on the system.

On other computers with Windows 98SE, it works fine. With the computer
described above, from Windows it prints, but when the program try to
print to
LPT1 Port, the task is done but in "slow motion", one line at a time.

This computer was working with the program for at least 2 years and
reports
no problems like this. I've already reinstalled Windows 98 to no avail.
I've already check disk fragmentation, port conflicts, reinstalled
printer
drivers (I did it with some hope to solve this problem), also copied
again
the lpt.vxd directly from the CD (with the extract utility). Also done a
Windows Update and nothing... The problem is only reported when printing
from any program that prints directly to the LPT1 Port. An example of
what
looks alike my routine:

port = fileopen("lpt1") //Open the ports and wait for data
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
fileclose(port) //End the printjob

Please help is needed ASAP.. This computer is used in the payroll
department, and is used to print payments by check.



let us know :


  #6  
Old February 18th 05, 02:45 PM
Balbino Caballero Pino
external usenet poster
 
Posts: n/a
Default

Here is the output that portmon generates...

0 3.65345360 Planilla VCOMM_OpenComm LPT1 SUCCESS
1 0.00001280 Planilla VCOMM_EscapeCommFunction LPT1 SUCCESS CLRTIMERLOGIC
2 0.00000640 Planilla VCOMM_EscapeCommFunction LPT1 SUCCESS IGNOREERRORONREADS
3 0.00000880 Planilla VCOMM_SetupComm LPT1 SUCCESS RxSize: 4096 TxSize: 0
4 0.00000640 Planilla VCOMM_GetCommQueueStatus LPT1 SUCCESS RX: 0 TX: 0
5 0.63182800 Planilla VCOMM_SetWriteCallBack LPT1 SUCCESS Trigger: 1
6 0.00002160 Planilla VCOMM_WriteComm LPT1 SUCCESS Length: 0:



"Haggis" escribió:


"Balbino Caballero" Balbino wrote in
message ...

Let me check on PORTMON....

and on Bios, i've already change the configuration TO ecp, epp, spp, and
still the same...

I also thought it was a printer problem, but using the same printer on
another computer is doing the same thing is ok...

Also change the interface cable between the lpt1 port and the printer (the
printer cable) and still nothing... using the same cable with other
computer/printer works....

"Balbino Caballero" wrote:

Hi everybody...

I've a Dell Optiplex GX1 with Windows 98SE, 64MB Ram.
I've developed a program that writes data directly to the LPT1 Port,
bypassing the installing printers on the system.

On other computers with Windows 98SE, it works fine. With the computer
described above, from Windows it prints, but when the program try to
print to
LPT1 Port, the task is done but in "slow motion", one line at a time.

This computer was working with the program for at least 2 years and
reports
no problems like this. I've already reinstalled Windows 98 to no avail.
I've already check disk fragmentation, port conflicts, reinstalled
printer
drivers (I did it with some hope to solve this problem), also copied
again
the lpt.vxd directly from the CD (with the extract utility). Also done a
Windows Update and nothing... The problem is only reported when printing
from any program that prints directly to the LPT1 Port. An example of
what
looks alike my routine:

port = fileopen("lpt1") //Open the ports and wait for data
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
fileclose(port) //End the printjob

Please help is needed ASAP.. This computer is used in the payroll
department, and is used to print payments by check.



let us know :



  #7  
Old February 18th 05, 03:31 PM
Haggis
external usenet poster
 
Posts: n/a
Default


"Balbino Caballero Pino" Balbino Caballero
wrote in message ...
Here is the output that portmon generates...

0 3.65345360 Planilla VCOMM_OpenComm LPT1 SUCCESS
1 0.00001280 Planilla VCOMM_EscapeCommFunction LPT1 SUCCESS CLRTIMERLOGIC
2 0.00000640 Planilla VCOMM_EscapeCommFunction LPT1 SUCCESS
IGNOREERRORONREADS
3 0.00000880 Planilla VCOMM_SetupComm LPT1 SUCCESS RxSize: 4096 TxSize: 0
4 0.00000640 Planilla VCOMM_GetCommQueueStatus LPT1 SUCCESS RX: 0 TX: 0
5 0.63182800 Planilla VCOMM_SetWriteCallBack LPT1 SUCCESS Trigger: 1
6 0.00002160 Planilla VCOMM_WriteComm LPT1 SUCCESS Length: 0:



"Haggis" escribió:


"Balbino Caballero" Balbino
wrote
in
message ...

Let me check on PORTMON....

and on Bios, i've already change the configuration TO ecp, epp, spp,
and
still the same...

I also thought it was a printer problem, but using the same printer on
another computer is doing the same thing is ok...

Also change the interface cable between the lpt1 port and the printer
(the
printer cable) and still nothing... using the same cable with other
computer/printer works....

"Balbino Caballero" wrote:

Hi everybody...

I've a Dell Optiplex GX1 with Windows 98SE, 64MB Ram.
I've developed a program that writes data directly to the LPT1 Port,
bypassing the installing printers on the system.

On other computers with Windows 98SE, it works fine. With the
computer
described above, from Windows it prints, but when the program try to
print to
LPT1 Port, the task is done but in "slow motion", one line at a time.

This computer was working with the program for at least 2 years and
reports
no problems like this. I've already reinstalled Windows 98 to no
avail.
I've already check disk fragmentation, port conflicts, reinstalled
printer
drivers (I did it with some hope to solve this problem), also copied
again
the lpt.vxd directly from the CD (with the extract utility). Also
done a
Windows Update and nothing... The problem is only reported when
printing
from any program that prints directly to the LPT1 Port. An example
of
what
looks alike my routine:

port = fileopen("lpt1") //Open the ports and wait for data
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
fileclose(port) //End the printjob

Please help is needed ASAP.. This computer is used in the payroll
department, and is used to print payments by check.



let us know :




I don't see anything to account for the slowdown ... Ingeborg ?


  #8  
Old February 18th 05, 06:18 PM
Menno Hershberger
external usenet poster
 
Posts: n/a
Default

What happens if you try to print something from a DOS shell?
Like "dir prn" or "copy [sometextfile] prn"
Is it sluggish? If it is, try booting directly into DOS and try it.
No solution I realize, but might help troubleshooting a bit.

"=?Utf-8?B?QmFsYmlubyBDYWJhbGxlcm8=?=" Balbino
wrote in
:

Hi everybody...

I've a Dell Optiplex GX1 with Windows 98SE, 64MB Ram.
I've developed a program that writes data directly to the LPT1 Port,
bypassing the installing printers on the system.

On other computers with Windows 98SE, it works fine. With the
computer described above, from Windows it prints, but when the program
try to print to LPT1 Port, the task is done but in "slow motion", one
line at a time.

This computer was working with the program for at least 2 years and
reports no problems like this. I've already reinstalled Windows 98 to
no avail. I've already check disk fragmentation, port conflicts,
reinstalled printer drivers (I did it with some hope to solve this
problem), also copied again the lpt.vxd directly from the CD (with the
extract utility). Also done a Windows Update and nothing... The
problem is only reported when printing from any program that prints
directly to the LPT1 Port. An example of what looks alike my
routine:

port = fileopen("lpt1") //Open the ports and wait for data
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
fileclose(port) //End the printjob

Please help is needed ASAP.. This computer is used in the payroll
department, and is used to print payments by check.




--
--- A Freudian slip is when you say one thing but mean your mother. ---
  #9  
Old February 18th 05, 09:29 PM
Ingeborg
external usenet poster
 
Posts: n/a
Default

"Haggis" wrote in
:


"Balbino Caballero Pino" Balbino Caballero
wrote in message
...
Here is the output that portmon generates...

0 3.65345360 Planilla VCOMM_OpenComm LPT1 SUCCESS
1 0.00001280 Planilla VCOMM_EscapeCommFunction LPT1 SUCCESS
CLRTIMERLOGIC 2 0.00000640 Planilla VCOMM_EscapeCommFunction LPT1
SUCCESS IGNOREERRORONREADS
3 0.00000880 Planilla VCOMM_SetupComm LPT1 SUCCESS RxSize: 4096
TxSize: 0 4 0.00000640 Planilla VCOMM_GetCommQueueStatus LPT1 SUCCESS
RX: 0 TX: 0 5 0.63182800 Planilla VCOMM_SetWriteCallBack LPT1 SUCCESS
Trigger: 1 6 0.00002160 Planilla VCOMM_WriteComm LPT1 SUCCESS Length:
0:



"Haggis" escribió:


"Balbino Caballero" Balbino

wrote in
message ...

Let me check on PORTMON....

and on Bios, i've already change the configuration TO ecp, epp,
spp, and
still the same...

I also thought it was a printer problem, but using the same
printer on another computer is doing the same thing is ok...

Also change the interface cable between the lpt1 port and the
printer (the
printer cable) and still nothing... using the same cable with
other computer/printer works....

"Balbino Caballero" wrote:

Hi everybody...

I've a Dell Optiplex GX1 with Windows 98SE, 64MB Ram.
I've developed a program that writes data directly to the LPT1
Port, bypassing the installing printers on the system.

On other computers with Windows 98SE, it works fine. With the
computer
described above, from Windows it prints, but when the program try
to print to
LPT1 Port, the task is done but in "slow motion", one line at a
time.

This computer was working with the program for at least 2 years
and reports
no problems like this. I've already reinstalled Windows 98 to no
avail.
I've already check disk fragmentation, port conflicts,
reinstalled printer
drivers (I did it with some hope to solve this problem), also
copied again
the lpt.vxd directly from the CD (with the extract utility).
Also done a
Windows Update and nothing... The problem is only reported when
printing
from any program that prints directly to the LPT1 Port. An
example of
what
looks alike my routine:

port = fileopen("lpt1") //Open the ports and wait for data
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
fileclose(port) //End the printjob

Please help is needed ASAP.. This computer is used in the payroll
department, and is used to print payments by check.


let us know :




I don't see anything to account for the slowdown ... Ingeborg ?



No. Everthing I see seems OK. But I don't see any data written to the
port.

I was thinking, W98 has a printing feature which maybe causes this
problem, but I don't know the English word for it.

When you go to the 'Printers' page in control panel, rightclick the
printer, choose properties-tab details. Then a button 'wait queue
settings' or something like that. Try different settings here.


When this doesn't work, I suggest a workaround. When you write to an
ordinairy file, you can reboot to dos and copy the file to the
printerport.
  #10  
Old February 19th 05, 02:11 PM
Balbino Caballero Pino
external usenet poster
 
Posts: n/a
Default

Hi everyone...

from the DOS Shell doing what Mr. Hershberger wrote, it prints slow, from
any DOS application that needs to print directly to the LPT1 port it prints
slow..
I've check this also on my own computer, that reports the same computer,
and the only difference between them is that in mine i do a clean install on
my computer and everything works fine....

The other computer I'm troubleshooting , i can't do a clean install on it,
because it has too much sensitive data ( if u know what i mean ... )...

As Mr. Haggis says, in the output file i send from portmon utility, that's
the only piece of code i got, because the printer hungs up in the middle of
printing... it opens the port, send some info and when it supposed to start
printing, with portmon it hungs up.... if i do it normally, it starts
printing at a slow rate....

"Menno Hershberger" wrote:

What happens if you try to print something from a DOS shell?
Like "dir prn" or "copy [sometextfile] prn"
Is it sluggish? If it is, try booting directly into DOS and try it.
No solution I realize, but might help troubleshooting a bit.

"=?Utf-8?B?QmFsYmlubyBDYWJhbGxlcm8=?=" Balbino
wrote in
:

Hi everybody...

I've a Dell Optiplex GX1 with Windows 98SE, 64MB Ram.
I've developed a program that writes data directly to the LPT1 Port,
bypassing the installing printers on the system.

On other computers with Windows 98SE, it works fine. With the
computer described above, from Windows it prints, but when the program
try to print to LPT1 Port, the task is done but in "slow motion", one
line at a time.

This computer was working with the program for at least 2 years and
reports no problems like this. I've already reinstalled Windows 98 to
no avail. I've already check disk fragmentation, port conflicts,
reinstalled printer drivers (I did it with some hope to solve this
problem), also copied again the lpt.vxd directly from the CD (with the
extract utility). Also done a Windows Update and nothing... The
problem is only reported when printing from any program that prints
directly to the LPT1 Port. An example of what looks alike my
routine:

port = fileopen("lpt1") //Open the ports and wait for data
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
filewrite(port, 'some text here')
fileclose(port) //End the printjob

Please help is needed ASAP.. This computer is used in the payroll
department, and is used to print payments by check.




--
--- A Freudian slip is when you say one thing but mean your mother. ---

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Home Networking - problems with printing Peter Networking 4 December 29th 04 08:46 AM
Please help! Display settings !! Mitzi Monitors & Displays 12 July 11th 04 05:19 AM
slow printing bill z Printing 1 July 4th 04 03:52 PM
Mouse slow, My Documents thumbnails slow camtpam Software & Applications 0 July 3rd 04 08:55 AM
slow printing John Vaughan Printing 1 June 23rd 04 09:54 PM


All times are GMT +1. The time now is 08:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Win98banter.
The comments are property of their posters.