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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
suhaniAuthor Commented:
Didn't work.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

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
mcriderCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
suhaniAuthor Commented:
Thanks!
0
mcriderCommented:
Thanks for the points! Glad I could help!


Cheers!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.