Conversation

Save/use page margins in RichEdit .rtf docs?

(overview of excerpts from articles in conversation)

Newsgroup: woll2woll.products.infopower

# Lines
wrote on 07-Apr-2000:

I'm using InfoPower 4 with Apollo 4.6 and D4 +Up3 on Windows 98 2nd Edition.
If a user changes a rich text formatted file's page margins at run time via
File, Page Setup, for example, the IP4 TwwDBRichEdit doesn't save (and later
use) the page margins in the document like Word does (using \margln,
\margrn, \margtn, and \margbn, where n is a number which, when divided by
24
  
Paul replied on 07-Apr-2000:

InfoPower 2000 supports most of the Richedit Version 2 implementation. I
  don't believe the RichEdit Version 2 supports embedded margins as you
  describe.
  However, the richedit control itself has a printmargins property that allows
  you to set the left,top,right, and bottom margins in inches.
10
    
Jack Stiles replied on 07-Apr-2000:

Hi Paul,
    As I indicated in my posting, I'm aware of the "printmargins property that
    allows you to set the left, top, right, and bottom margins in inches." The
    problem is that a user may change the margins of an RTF document via File,
    Page Setup, for example, and save the document with different margins (and
46
      
Roy Woll replied on 09-Apr-2000:

It seems to me, that all you need to do is to save the printmargins property
      yourself to a corresponding file (ini file). Then you can read in the last
      saved margins and set the richedit's properties. It would not seem
      appropriate to me to have our control generate this ini file for you as it
      assumes an implementation beyond the rtf file format. If I am
70
        
Jack Stiles replied on 11-Apr-2000:

Hi Roy,
        My app already saves and retrieves the last Printmargin properties using the
        Registry, but this doesn't solve the problem because users want different
        print margins for different types of documents, and they can't be expected
        to
160
          
Roy Woll replied on 11-Apr-2000:

Thank you for clarifying. I'm afraid you are on your own on this one. We
          will re-evaluate at a future time, based on Microsoft's new richedit version
          3. At this time, I do not know if they have extended rtf in your described
          areas.
          --
193
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Thu, 28 Mar 2024 18:06:27 UTC
Copyright © 2009-2024
HREF Tools Corp.