Hello,
I've set in DocParameters.Units rvuCentimeters. PageWidth is set to 21. But if I start my application and start the Editor (over the Reportbuilder) then PageWidth is set to 33. If I change then the PageWidth to 21 with the mouse and then print it with the reportbuilder, the PageWidth is very smaller (I see this, because the word wrap is too early).
Can it be that there is a problem with rvuCentimeters. Does RichView calculate with Inches?
Best wishes
Bernhard
rvuCentimeters
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
RichViewEdit.DocParameters property does not affect how documents are displayed. Its primary use is to save this information in RTF files (and in RVF files).
TRVRuler cannot change them, because it's impossible (it cannot change page size, page margins and other DocParameters, because they are not displayed in TRichViewEdit).
But this property is used in ScaleRichView.
So I need to know first, do you use TRichViewEdit or TSRichViewEdit?
Besides, DocParameters are saved/loaded in RVF only if rvfoSaveDocProperties and rvfoLoadDocProperties are included in RichViewEdit.RVFOptions. So they can be lost when transferring document to/from ReportBuilder's ppRichView editor, if these options were not included in ppRichView.RichView.RVFOptions.
TRVRuler cannot change them, because it's impossible (it cannot change page size, page margins and other DocParameters, because they are not displayed in TRichViewEdit).
But this property is used in ScaleRichView.
So I need to know first, do you use TRichViewEdit or TSRichViewEdit?
Besides, DocParameters are saved/loaded in RVF only if rvfoSaveDocProperties and rvfoLoadDocProperties are included in RichViewEdit.RVFOptions. So they can be lost when transferring document to/from ReportBuilder's ppRichView editor, if these options were not included in ppRichView.RichView.RVFOptions.