Solved

Need help printing on HP DeskJet

Posted on 1998-07-29
7
263 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Some of the SEO trends we might expect in 2017.
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

837 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