trichview.com

trichview.support




Hiding Margins


Return to index


Author

Message

Steven Beebe

Posted: 03/03/2004 3:30:40


I've using TRichView in two ways within my application.


1)  As a page on a fixed size dialog that provides limited editing

capability.  It is generally one of a few pages on a page control.


2)  A sizable editor with all the formatting functionality of

TRichViewEdit (using RichViewActions).


The user has a choice of working within the limits of the fixed dialog,

which is sufficient if they are primariy entering test, or they can

invoke the full editor from the fixed size dialog to do more

sophisticated formatting.


The problem:  In the full editor, if I set margins to 1 inch both left

and right, the document looks very nice, similar to working in a word

processor.  But when I save the document (saves to a blobfield in a

database) and then view it in the fixed dialog, it doesn't look right

(technically, I know it is correct, but to the user it looks wrong).  My

dialog might only be 4 inches wide, and with a one inch margin on both

sides, there's just two inches of text down the middle.


Is there a way to display the documents contents (one saved with

margins), but ignore the margins.  I don't want to change the document,

because if it is edited again in the full editor, I don't want to lose

the margins.  But just display it without the margins.


Can this be done?


Sorry for such a long post.


Steve





Powered by ABC Amber Outlook Express Converter