Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!bc From: bc@Apple.COM (bill coderre) Newsgroups: comp.sys.mac.hypercard Subject: Re: Printing card field Keywords: Printing fields Message-ID: <44777@apple.Apple.COM> Date: 13 Sep 90 17:22:24 GMT References: <2303@linac.fnal.gov> Distribution: usa Organization: private consulting available now Lines: 28 In article <2303@linac.fnal.gov> palkovic@linac.fnal.gov writes: |How do I print a card field? Preferably with a button. I have a |Hypercard stack that I use to read mail. Each mail message has it's |own card. I would like to have a button named "Print Message" to print |the current message. It is in a card field. In HC 1.2.5: on PrintMessage fieldlongname -- first write the field to a file open file "tempfoo" write fieldlongname to "tempfoo" close file "tempfoo" --now use another application to print the file print "tempfoo" with "teachtext" end PrintMessage in HC 2.0: on PrintMessage fieldlongname open printing -- choose one of the following two lines: print fieldlongname -- with formatting intact print (fieldlongname) -- with no formatting close printing end PrintMessage pretty neat, eh? bill coderre private consultant for hire