Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4106
Number of posts: 14016

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
i need print coomand in turbo pascal 7.0 Posted by draxb on 18 Feb 2004 at 8:17 AM
how can I print what is written to the screen. If there is any idea please i'll be glad anyone can share it with me.
thanks
Report
Re: i need print coomand in turbo pascal 7.0 Posted by zibadian on 18 Feb 2004 at 10:47 AM
: how can I print what is written to the screen. If there is any idea please i'll be glad anyone can share it with me.
: thanks
:
You need to use write() and writeln() for that.
Report
Re: i need print coomand in turbo pascal 7.0 Posted by Aoshishinomori on 19 Feb 2004 at 2:08 PM
: : how can I print what is written to the screen. If there is any idea please i'll be glad anyone can share it with me.
: : thanks
: :
: You need to use write() and writeln() for that.
:
:Draxb

When you say "print what is written to the screen" do you mean "print onto the screen" or "print using printer hardware"?

If you want to "print using printer hardware" in turbo pascal 7, I think I have an idea of how to do that.

First of all, you need to put USES PRINTER right after the program declaration.

Then (I'm not 100% sure on this) you need to write to the LST device.
Ex. writeln(LST,'Hello');

If that doesn't solve your problem, there are some great sites out there (programmer's heaven being one of them) that can help you.
Try www.pascal-central.com or you could email an expert at horizon 7 international.

Hope that helps you! Best of luck!



Report
Re: i need print coomand in turbo pascal 7.0 Posted by draxb on 21 Feb 2004 at 6:02 AM
I meant print using the printer. I'll try your idea and i hope it works. But if anything comes up that could help me please don't hesitate to share with me.
Thanks
Report
Re: i need print coomand in turbo pascal 7.0 Posted by adibichea on 21 Feb 2004 at 6:18 AM
This message was edited by adibichea at 2004-2-21 6:18:57

assign(f,prn);rewrite(f);
writeln(f,'Printer test in turbo pascal');
close(f);






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.