Porting PrintReport (was: Re: Windowscript)

Stephen Quinn Barncard stephenREVOLUTION at barncard.com
Thu Jan 29 18:51:58 EST 2004


I don't know about the Report stack mentioned, but Printreport wasn't 
a collection of WYSIWYG tools, it was a programming language that 
allowed complete control of what gets printed on the page through 
graphic primitives and also allowed as complete an access to the 
mysterious apple print drivers to the point where you could exchange 
a printer configuration with the system. But it was up to the user 
how to manage it.

It was all based on text contained in the data sent to the printer 
through the XCMD. See below for a code dump generated for use by 
Printreport - Backslashes are the escape character, obviously. Tabs 
stops are handled as well as line circle and rectangle primitives and 
some insertion of pict format images. Later when color inkjets 
appeared, I was pleased to find out that the spec included basic 
color... although only through a placed graphic.

I thought that there was a later version; one that included color for text.



>
>This is good. Two actual users of Printreport that
>could answer this question:
>
>How different is PrintReport from the stack named
>"Report" that you could download from
>tools.metacard.com stack?
>
>Thanks in advance.
>
>al
>

An example of Printreport code is shown below...
First is a statement of margins, then CT = tab stops, stops at 0,30 
and 85 mm, then a region is created then text is drawn inside it, 
etc, etc.

Pretty screwy, but you could do almost anything with it. I have the 
manual around somewhere.


\LM0in;TM0in;RM0in;BM0in\ \CT;ST0m;ST30m;ST85m\
\sr31p,33p,303p,337p\\pp1;BX\\C+\\FNTimes\\FS14\\PL;BO\20031221 
STARCROSSED\FNVerdana\\FS9\\PL\
VERSION \FS16\\PL;BO\5\FS9\\PL\ SEQUENCE
12/21/2003


1.	Born Too Late	02:59
2.	SUV	03:31
3.	Got to Get the Boy Back	04:19
4.	Star-Crossed	03:11
5.	Living in the World	03:39
6.	Hungry Heart of Love	03:21
7.	Backwards	05:04
8.	Sanguine	03:55
9.	Moment to Moment	04:00
10.	Meltdown	03:28
11.	Born Too Late (Reprise)	00:45

	Total Time:	38:40\XX\\sr0p,-1p,340p,340p;pp2;fr\
\GFG4_BARNCARDIA_PB:Users:sbarncar:Documents:   Most Important Data 
Files:development:sqb HC apps:TC Lable System:Logo PICTS:Civil 
Defense_300dpiCOL.pict;pp3;CX131p,271p,205p,337p\
\sr31p,373p,303p,677p\\pp1;BX\\C+\\FNTimes\\FS14\\PL;BO\20031221 
STARCROSSED\FNVerdana\\FS9\\PL\
VERSION \FS16\\PL;BO\5\FS9\\PL\ SEQUENCE
12/21/2003


1.	Born Too Late	02:59
2.	SUV	03:31
3.	Got to Get the Boy Back	04:19
4.	Star-Crossed	03:11
5.	Living in the World	03:39
6.	Hungry Heart of Love	03:21
7.	Backwards	05:04
8.	Sanguine	03:55
9.	Moment to Moment	04:00
10.	Meltdown	03:28
11.	Born Too Late (Reprise)	00:45

	Total Time:	38:40\XX\\sr0p,339p,340p,680p;pp2;fr\
\GFG4_BARNCARDIA_PB:Users:sbarncar:Documents:   Most Important Data 
Files:development:sqb HC apps:TC Lable System:Logo PICTS:Civil 
Defense_300dpiCOL.pict;pp3;CX131p,611p,205p,677p\\LM1inch;TM.5inch;FNGeneva;FS9\


More information about the use-livecode mailing list