Page 1 of 1
ppRichView Millimeters
Posted: Thu Feb 21, 2008 1:07 pm
by BernhardRoos
Hello,
can it be that ppRichView always uses inch instead of Millimeters? Although in the RichView Editor it is set to Millimeters and I'm changing the width, if I'm printing it the page width is very small (not the value I've set over the ruler in the RichView Editor)
What is to do that ppRichView uses the same unit as in the RichView is set?
Best wishes
Bernhard
Posted: Thu Feb 21, 2008 2:44 pm
by Sergey Tkachenko
Sorry, I do not understand. ppRichView uses width defined in the ReportBuilder report designer.
Do you mean DocParameters property? Its sub-properties do not affect TRichView or ppRichView, they only can be saved and loaded in RVF and RTF.
Posted: Fri Feb 22, 2008 6:42 am
by BernhardRoos
No I meant ppRichView. The Report is set to Millimeters but the ppRichView don't print correct if I change the width of the document over the ruler of the RichView Editor. For Example, I've set the width to 190 mm (over the ruler). In the Editor or in a other RichView Component (where I load the document), all works fine. But the Reportbuilder prints the document then only in a very small width.
Sorry, I can't explain it better. So I thought the ppRichView interprets the mm as inches.
Best wishes
Bernhard
Posted: Fri Feb 22, 2008 7:07 am
by Sergey Tkachenko
Ruler does not set page width. Ruler only changes margins.
Posted: Fri Feb 22, 2008 7:09 am
by BernhardRoos
Further test shows me, it is only the calc of the width area. If I have a horizontal line in the document I can see that the width area is very too small (but the items are printing correct, except that the word wrap is happen very too early)
Posted: Fri Feb 22, 2008 7:12 am
by BernhardRoos
Sorry, I meant the right margins
Posted: Fri Feb 22, 2008 7:15 am
by BernhardRoos
It is very simple to reproduce.
1. Set a ppRichView in the report
2. Set the report to Millimeters
3. Right Click and select Edit
4. Make a horizontal line in the richview
5. Change the right Margin too for example 190 mm
6. Close the richview
So you can see in the ppRichView Component the content of the richview document. The line is now only two or three centimeters width.
Posted: Sun Feb 24, 2008 10:34 am
by Sergey Tkachenko
Sorry, right margin of what?
Posted: Wed Feb 27, 2008 10:14 am
by BernhardRoos
Use the mouse on the ruler and change the right margin. I can't explain it better because my english is not so good. Sorry. The only thing what is to do the editable width of the RichViewEdit to make smaller than the standard. You should see, that then the content of ppRichView is too small (and so the word wrap happens after a few centimeters.
Best wishes
Bernhard
Posted: Thu Feb 28, 2008 11:58 am
by Sergey Tkachenko
ppRichView's editor does not have a ruler, but I can load RVF file with large right margin (note that internally in TRichView, all margins are stored in screen pixels).
Yes, it's possible that LeftMargin+RightMargin >= width of ppRichView object (after converting to the same units), the text will be wrapped after some minimal width and may look condensed.
But how do you want to display such documents?