RTF Formatting question
Posted: Mon Jan 07, 2008 9:40 pm
				
				I'm looking at the PDF demo, and I notice this in the block to read an RTF file:
The latest version of RV/RVE has DocParameters to get the margins and such from the RTF file.  So my question is, are these now loaded automatically?  Or can they be set after the call to LoadRTF?  Specifically, which of these is most appropriate:
or
Thanks
-David
			Code: Select all
             srve.RichViewEdit.Clear;
             srve.RichViewEdit.DeleteUnusedStyles(True, True, True);
             srve.RichViewEdit.LeftMargin := 132;
             srve.RichViewEdit.RightMargin := 57;
             srve.RichViewEdit.TopMargin := 94;
             srve.RichViewEdit.BottomMargin := 94;
             srve.RichViewEdit.LoadRTF(OpenDialog1.FileName);
             srve.RichViewEdit.Format;
Code: Select all
             srve.RichViewEdit.Clear;
             srve.RichViewEdit.DeleteUnusedStyles(True, True, True);
             srve.RichViewEdit.LoadRTF(OpenDialog1.FileName);
             srve.RichViewEdit.Format;
Code: Select all
             srve.RichViewEdit.Clear;
             srve.RichViewEdit.DeleteUnusedStyles(True, True, True);
             srve.RichViewEdit.LoadRTF(OpenDialog1.FileName);
             srve.RichViewEdit.LeftMargin := Floor(srve.RichViewEdit.DocParameters.LeftMargin);
             srve.RichViewEdit.RightMargin := Floor(srve.RichViewEdit.DocParameters.RightMargin);
             srve.RichViewEdit.TopMargin := Floor(srve.RichViewEdit.DocParameters.TopMargin);
             srve.RichViewEdit.BottomMargin := Floor(srve.RichViewEdit.DocParameters.BottomMargin);
             srve.RichViewEdit.Format;
-David
 , recommendations are not present. Updating will be this week.
 , recommendations are not present. Updating will be this week.