` Constructing simple RTF text (Nick Coe) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Clarion in general: Constructing simple RTF text
2005-02-02 -- Nick Coe
 
Newsgroups: comp.lang.clarion,softvelocity.public.clarion6 >>> Anyone know if its possible to place a page break in a >>> C6.1 RTF >>> Control, and obviously have this work when pring the RTF >>> Control on >>> a report? >> Save the heartache. >> Get RichReport Extension - I use it to print multi page >> RTFs - both >> in CPCS >> and standard Clarion reports - pages flow without any >> problem - >> don't have to think about page breaks - etc. BTW - would >> be hard >> for you to figure out >> where you want the page breaks to be - the RTF format >> allows all >> kinds of stuff (like bold, bold italic) which means that >> simple >> calculations of where you think the line break ought to >> be won't >> work. Check out Clarion COnnection for RichReport. > Thats why I liked the idea of {{/rtf1/page}, I can replace > a token at > runtime with this then, so the user has control, but > Clarion takes no > notice of it on a report. And I cant see that RichReport > would help > here neither :( I doubt whether it'll make much difference since it works in Word, but the rtf spec requires \ not / and you really only need \rtf or \rtf1 right at the very beginning of the rtf stream after the first {. When I developed AccHelp I did a fair bit of research into RTF's to produce endnoted rtf's for input to the winhelp compiler- One of the simplest files I made by hand with TextPad (it's well spread out to make it more human readable):- {\rtf\ansi\deff0{\fonttbl{\f0\fswiss Helv;}{\f1\froman Tms Rmn;}} \sectd \pard\plain \fet1\aenddoc{\super # {\footnote\ftnalt \pard\plain \fs20{\super # }{ 100 }}\pard\plain OVERVIEW \par Written by hand with TextPad. }\page{\super # {\footnote\ftnalt \pard\plain \fs20{\super # }{ 200 }}\pard\plain DETAIL\par TextPad was used to manually create this endnoted Rich Text File }} Note the \page just after the close of the text Written by hand with TextPad} Haven't tried it in a RichTextControl yet but I'm heading that way because I'll use a similar method for subscript \sub and superscript \super. Word actually inserts \par\page if you do a hard page (Ctrl-Enter) I think the \par (new paragraph) is redundant just like the vast bulk of crap Word puts into rtf's. -- Nick Coe (UK) AccHelp v1.01 Access Application Help File Builder http://www.alphacos.co.uk/ Download Free Copy ----


Today is November 21, 2024, 3:47 am
This article has been viewed 35447 times.
Google search has resulted in 62 hits on this article since January 25, 2004.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: