ppRichView Millimeters

General TRichView support forum. Please post your questions here
Post Reply
BernhardRoos
Posts: 104
Joined: Mon Nov 26, 2007 1:49 pm

ppRichView Millimeters

Post 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
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
BernhardRoos
Posts: 104
Joined: Mon Nov 26, 2007 1:49 pm

Post 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
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Ruler does not set page width. Ruler only changes margins.
BernhardRoos
Posts: 104
Joined: Mon Nov 26, 2007 1:49 pm

Post 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)
BernhardRoos
Posts: 104
Joined: Mon Nov 26, 2007 1:49 pm

Post by BernhardRoos »

Sorry, I meant the right margins
BernhardRoos
Posts: 104
Joined: Mon Nov 26, 2007 1:49 pm

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Sorry, right margin of what?
BernhardRoos
Posts: 104
Joined: Mon Nov 26, 2007 1:49 pm

Post 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
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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?
Post Reply