Question About Printing. 
Author Message
 Question About Printing.

Hi.  I am kinda new to Pascal.  Anyone know of a good site w/ example source
code or where I can learn more about using a printer to print output from a
program (such as printing the values of variables).  thanx a lot! :-)


Wed, 18 Jun 1902 08:00:00 GMT  
 Question About Printing.



Quote:
> Hi.  I am kinda new to pascal.  Anyone know of a good site w/ example
source
> code or where I can learn more about using a printer to print output from
a
> program (such as printing the values of variables).  thanx a lot! :-)

there are two ways for simple printing:

1. using the unit printer;

uses
 printer; { defines the variable LST }

begin
  writeln(lst, "Hello World!");
end.

2. opening the printer as an output device:
var
 f : text;   { file variable for text files }

begin
 assign(f, "PRN");  { "PRN" is the printer of the os, if you want to access
a specific port, use "LPT1" or "LPT2", etc. }
 reset(f);
 writeln(f, "Hello World!");
 close(f);
end.

Bye,
  Tobi



Wed, 18 Jun 1902 08:00:00 GMT  
 Question About Printing.

:Hi.  I am kinda new to pascal.  Anyone know of a good site w/ example source

 http://www.uwasa.fi/~ts/http/http2.html#programming

 164988 Apr 25 1999 ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip
 tsfaqp.zip Common Turbo Pascal Questions and Timo's answers, linked

 320779 Oct 19 1992 ftp://garbo.uwasa.fi/pc/turbopas/tpr-book.zip
 tpr-book.zip Electronic Turbo Pascal Reference freeware book, E.Mitchell

 157497 Mar 26 1996 ftp://garbo.uwasa.fi/pc/turbopas/tptutr11.zip
 tptutr11.zip ASCII-text Turbo Pascal Tutor 1-22, G.Grotzinger, useful

   All the best, Timo

....................................................................

Moderating at ftp:// & http://garbo.uwasa.fi/ archives 193.166.120.5
Department of Accounting and Business Finance  ; University of Vaasa

Spam foiling in effect.  My email filter autoresponder will return a
required email password to users not yet in the privileges database.
Advice on spam foiling at http://www.uwasa.fi/~ts/info/spamfoil.html



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Easy Question--About Printing?

2. Question Dos Printing in Win95

3. Printing database question

4. newbie question: printing tables

5. Printing question

6. ReportSmith - question on defining records for printing

7. D1: TDBGrid Printing Question

8. Printing Question

9. Printing - question

10. Delphi Printing Question

11. Question: Printing a Query

12. How to print to Novell print queue?

 

 
Powered by phpBB® Forum Software