Receive Path/File access error (Error 75)

In my application, I directly linked to printer using the statement
Open "LPT1" for Output As #2

So, I connected the printer at LPT1. When I tested it out in the office and at home, it could be printed. But, when I installed the application at my clients pc, the computer gave me that error. I checked that the printer is connected at LPT1.

So, where did I go wrong?

suhaniAsked:
Who is Participating?
 
mcriderConnect With a Mentor Commented:
Not all printers support direct writing to the lpt port without also sending the printer's startup, formatting and shutdown escape codes.  When you use the printer object instead, these codes are handled for you...


Take the example where the printer you are connecting to is a POSTSCRIPT printer...

Unless the data you are writing directly to the printer is postscript, it will not print... But the driver formats it properly...

Also, sending directly can interfere with the queueing mechanism of windows.



Cheers!
0
 
prem_kumar_25Commented:
The reason can be that the printer driver was not installed properly . or The printer was not set to be the Default printer for that PC

Hope this will solve ur problem


0
 
mcriderCommented:
You really shouldn't be doing this and should be using the Printer Object instead...

With that said, check the detailed configuration of the printer attached to LPT1...

   MyComputer
   Printers
   Right-Click the printer and select properties
   then in the details tab, there should be a "Port Settings..." Button
   Check "Spool MS-DOS print jobs"
   check "Check port state before printing"

Cheers!
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
suhaniAuthor Commented:
Didn't work.
0
 
suhaniAuthor Commented:
Adjusted points to 50
0
 
suhaniAuthor Commented:
Hello?
0
 
mcriderCommented:
You really shouldn't be doing this and should be using the Printer Object instead...

Cheers!
0
 
suhaniAuthor Commented:
But I have already used PCL and if I use Printer object, there will be some limitations on the format setting.

Is there any other solution besides Printer object?
0
 
mcriderCommented:
Check out this microsoft article:

HOWTO: Use PASSTHROUGH Escape to Send Data Directly to Printer
http://support.microsoft.com/support/kb/articles/Q96/7/95.ASP 
 

Cheers!
0
 
suhaniAuthor Commented:
But, I really need to know what's wrong with the method using the statement

Open "LPT1" for Output As #2

Can anyone please tell me why?
0
 
suhaniAuthor Commented:
Thanks!
0
 
mcriderCommented:
Thanks for the points! Glad I could help!


Cheers!
0
All Courses

From novice to tech pro — start learning today.