Page 1 of 1

How show the header and footer ?

Posted: Fri Apr 18, 2008 9:04 am
by pepealonso
Hello

As I show the header and footer while editing a document ?

Posted: Fri Apr 18, 2008 5:21 pm
by proxy3d
SRV does not support header and footer. It will be realized with one of new versions.

Posted: Mon Apr 21, 2008 10:25 am
by pepealonso
proxy3d wrote:SRV does not support header and footer. It will be realized with one of new versions.
The approximate date of departure from this update?. You have a thought TSDBRichView?

Greetings.

Posted: Thu Apr 24, 2008 1:40 pm
by proxy3d
Support of header and footer is planned for June.
TSDBRichView it will be implemented in May.

Posted: Thu Aug 21, 2008 7:19 am
by Crowbar
proxy3d wrote:Support of header and footer is planned for June. ..
Hi,
is the Support of header and footer realized in the new version of ScaleRichView?
Is it possible over an other "way" to realized Header and Footer (e.g. in the OnDraw routine)?
If so, can you give me an example code?
I test to time the trial version.

Best regards,
Crowbar

Posted: Thu Aug 28, 2008 11:45 am
by proxy3d
In following updating there will be an example how to draw the header and footer. It has demanded changes in code SRichView.
You can draw them and now in event OnPaintPage, but I would not advise. Because in following updating this procedure will become simpler. Call OnPaintPage will be changed.

Posted: Sat Nov 08, 2008 10:27 am
by Crowbar
Hi,
proxy3d wrote:In following updating there will be an example how to draw the header and footer. ...
It is already planned, when the next update with an example how to draw the header and footer will be available?

Best regards,
Crowbar

Posted: Tue Nov 11, 2008 1:44 pm
by Sergey Tkachenko
It's already implemented, with a demo, but was not uploaded yet.
We are currently working on new help file for ScaleRichView, what's why the next update is delayed.
The work is almost finished, we plan to upload the update for registered users in this week.

Posted: Sun Nov 23, 2008 5:38 pm
by Crowbar
Hi,
i have installed the trial-version of ScaleRichView and tested it.
The Demo "Header and Footer" is very good, but I have a question about.
Is it possible to extend this demo?

To Example with:
- multiline Footertext with the possibility of left-, right- and center alignment

That would be perfect!

Thanks and very good work,

Best regards

Posted: Mon Nov 24, 2008 6:29 pm
by Sergey Tkachenko
In this demo, you can draw any additional information on the page.
This demo uses Canvas.TextOut to draw a single line of text.
You can use DrawText(Canvas.Handle, ...) to draw a multiline text with alignment.

Posted: Mon Nov 24, 2008 7:58 pm
by Crowbar
Hi,
thank you for the information with "DrawText...", it works fine. :)

Why will with the function "Canvas.LineTo..." no horizontal line appear?
I want to achieve the following example, a footer with a horizontal line:

Image

Best regards

Posted: Tue Nov 25, 2008 1:10 pm
by Sergey Tkachenko
May be it is too narrow and disappears on preview, if zooming is too low? Did you set the proper color and width? Does it appear on paper?

Posted: Tue Nov 25, 2008 6:22 pm
by Crowbar
Hi,
i forgot, the "Canvas.Pen.Style" to define. :oops:

So, this works fine (draws a horizontal line in the footer):

Code: Select all

...
Canvas.Pen.Color:=clBlack;
Canvas.Pen.Width:=1;
Canvas.Pen.Style:=psSolid;  //<- ;)
Canvas.MoveTo(PR.Left +srve.LeftMargin100Pix ,PR.Bottom - H);
Canvas.LineTo(PR.Right-srve.RightMargin100Pix,PR.Bottom - H);
DrawText(Canvas.Handle, PChar(Text), Length(Text), PR, DT_center)
...
Thanks,
Best regards