Solved

Need help printing on HP DeskJet

Posted on 1998-07-29
7
250 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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
help with delphi code 6 478
Text To Speech and Speech To Text Enabled Delphi Application; 6 2,559
Utf8 encode 2 561
ADO Memory leak with DELPHI 2007 37 155
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

705 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now