Solved

Need help printing on HP DeskJet

Posted on 1998-07-29
7
259 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 50 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Pascal code for reading registry 1 351
Determine Drive Types 2 475
Delphi Ascii code 2 989
how to manage invalidate between two tvirtualstringtree in same form? 1 117
Google always has something new and amazing up its sleeve, and the most current thing that they have been working on is another step in the evolution of Google Search, from machine learning to its brilliant successor, deep learning.
February 24, 2017 — On February 23, Travis Ormandy, a vulnerability researcher at Google, reported on Twitter (https://twitter.com/taviso/status/834900838837411840) that massive stores of data have been leaked by CloudFlare, a company that provide…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

803 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