How to determine margin (pagesetup) from RTF file


2006-05-31 08:36:28 PM
delphi148
Hi all,
I have a QuickRep form that I use to print/preview rtf documents. These
documents are imported by the client thus can have variations in margins and
page orientation.
I would like to get the margins (left,right, top, bottom) and page
orientation from the rtf document and then set the QuickRep component's
report settings to match. On important note, the rtf document is stored in a
database and read back from a stream.
Any suggestions on how to grab this information or alternative solutions is
appreciated.
Thanks,
Vernon.