[comp.sys.mac.hypercard] columns and printing scrolling fields

garl@nlm-mcs.arpa (Gary Letourneau) (01/31/89)

I am looking for information on how to do the following 2 things
in hypercard:

   1. Print the contents of a scrolling text field to a printer.
   2. Format columns of data contained in scrolling text fields into
      'neat' columns.

I would appreciate any leads.

						Gary Letourneau
						garl@mcs.nlm.nih.gov

stone@hydra.unm.edu (Andrew Stone CS.DEPT) (01/31/89)

In article <8881@nlm-mcs.arpa> garl@nlm-mcs.arpa (Gary Letourneau) writes:
>
>I am looking for information on how to do the following 2 things
>in hypercard:
>
>   1. Print the contents of a scrolling text field to a printer.
Get the Printfield XCMD from Dartmouth, it allows laser fonts, etc.

>   2. Format columns of data contained in scrolling text fields into
>      'neat' columns.
>
If you write your columns of data with a comma between items, then you can 
export your data to a tab delineated text file as follows:

   on myTabexport fname
     open file fname        -- use XFCN filename for robustness
     repeat with i = 1 to the number of lines in field "data"
       repeat with j = 1 to the number of items in line i of field "data"
         write item j of line i of field "data" & tab to file fname
       end repeat
       write return to file fname
     end repeat
     close file fname 
   end myTabexport

This file could be opened by Excel and the data manipulated and printed, or 
by a word processor and printed.

Hope this helps.
andrew

||<<++>>||<<-->>||<<==>>||<<++>>||<<??>>||<<++>>||<<-->>||<<==>>||<<++>>||
||                                  ||                                  ||
||	   Andrew Stone	            ??		2 + 2 = 5;		|| 
||         stone@hydra.unm.edu	    <> 	    for sufficiently large 2    ||
||	   			    ||					||
||<<++>>||<<-->>||<<==>>||<<++>>||<<??>>||<<++>>||<<-->>||<<==>>||<<++>>||

swenson@isl.Stanford.EDU (Norman Swenson) (02/01/89)

In article <4316@charon.unm.edu> stone@hydra.unm.edu.UUCP (Andrew Stone CS.DEPT) writes:

>Get the Printfield XCMD from Dartmouth, it allows laser fonts, etc.
>
How can we get this (and other generally useful) XCMDs?  What about
public domain stacks? Are these posted somwhere?

Norm
swenson@isl.stanford.edu