Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!olivea!apple!voder!blia!nobody From: nobody@blia.sharebase.com (Nobody at all) Newsgroups: comp.sys.mac.hypercard Subject: Re: Exporting Formatted Text from HC2.0 Message-ID: <13779@blia.sharebase.com> Date: 2 Apr 91 17:07:47 GMT References: <670568447.1@blkcat.Fidonet.Org> <1991Apr2.081825.17264@metro.ucc.su.OZ.AU> Reply-To: jeffb@blackhaw.UUCP (Jeff Beard) Organization: ShareBase Lines: 59 In article <1991Apr2.081825.17264@metro.ucc.su.OZ.AU> colinr@extro.ucc.su.oz.au (Colin Rose) writes: >Greetings one and all. > > EXPORTING FORMATTED TEXT > > In Hypercard, you can format text: ie whole fields or text >within fields can be specified to be italic, bold, fontsize etc. >That is GREAT, but how do I export this information to a >MS Word file, or other. > > It seems Hypercard will only write to ASCII-style files, >which cannot accept such formatting information (bold, italic etc). >If this is so, it would seem to be a very silly ommission from >the upgrade. Any ideas ? > Word processors use 'style-sheets' to ease formatting ... you know ... title line is centered, BOLD, font X, size Y chapter names are BOLD, left justified, new page, sections are space above/below, underlined body text is filled (justified) with margins x,y enumerated lists use hanging intents and on it goes. I normally use Word 4.0, but found quickly that custom style sheets MUST be imported from other documents, so ... for this kind of problem, I've switched to PageMaker 4.0 which allows one to add style sheets to the application itself. Knowing that style sheet XYZ has BOLD, font X, size Y, one can export ASCII text in this manner: open file TheFIle write "" to TheFile write return to TheFile -- items henceforthe are formatted by the definition of -- the XYZ style sheet .. .. -- when done, revert to normal "unformatted control" write "" to TheFile write return to TheFile In this manner, I am using HC to acquire line items for custom invoice printing in which the HC data is PLACED into the form. ------- J. Beard jeffb@sharebase.com