Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Need help printing on HP DeskJet

Posted on 1998-07-29
7
Medium Priority
?
267 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

 

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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

In this article, I’ll show how research, determination, and use of modern technology helped me solve a DNA mystery.
Want to know how to use Exchange Server Eseutil command? Go through this article as it gives you the know-how.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

722 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