Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Need help printing on HP DeskJet

Posted on 1998-07-29
7
Medium Priority
?
268 Views
Last Modified: 2010-04-16
I am currently taking my first class in Pascal.  My problem is I cannot print my output or print the program from the Turbo Pascal 7.0 editor.  I am using Win95 and a HP DeskJet printer.  My error is within the printer setup prnfltr path.  Pascal path is C:\tp\bin.  Please help.
0
Comment
Question by:tammys
7 Comments
 

Expert Comment

by:Abbas071098
ID: 1217199
No matter where the pascal lie (pascal path), u better set up ur printer properly, make sure the set up program is for windows 95
0
 
LVL 2

Expert Comment

by:shchuka
ID: 1217200
Is is this a network printer or a locally connected one?

If it's a network printer, when you're setting it up, one of the questions is "Do you want to print to this printer from DOS programs?"  Answer 'YES'.  This is essential.

If it's a locally connected printer, make sure you're printing to the correct port.  The prnfltr program is normally located in the same directory as your pascal itself (i.e. c:\tp\bin).  Make sure the path is correct and the port selection is correct.
0
 

Accepted Solution

by:
elkiors earned 100 total points
ID: 1217201
Is your problem REALLY with prnfltr or is it with your piece of code.

If you're using WRITELN or WRITE then you need to write to the LPT file rather than the obscure PRN file ie,

WRITELN(LPT,'This should get printed');

but remember to formfeed afterwards

Hope this helps

cu

Elkiors

0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 

Expert Comment

by:elkiors
ID: 1217202
Sorry about my answer, it's wrong, it's been a while since I did anything in Pascal. I'ts not LPT it's LST ie

WRITELN(LST,'This is a message');

As far as I'm aware, printing to a HP DeskJet isn't a problem, certainly on a local connection.
0
 
LVL 2

Expert Comment

by:omsec
ID: 1217203
i dont think he has trouble printing from his program. He need to set up the TP/BP IDE to print loaded PAS Files
0
 

Expert Comment

by:elkiors
ID: 1217204
Glad to have been able to help Tammy.

Do you need a hand with anything else ?

Look after yourself

See you on another thread maybe.

Elkiors (Darren)

0
 

Expert Comment

by:elkiors
ID: 1217205
glad to have helped

Is there anything else you're having problems with ?


Elkiors (Darren)

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Loops Section Overview
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question