trichview.com

trichview.support




Re: Some general question


Return to index


Author

Message

Sergey Tkachenko

Posted: 04/04/2002 20:06:25


1) TRichView does not based on RichEdit, and its programming interface

differs from one of RichEdit

2) Printing is done by the special invisible at run-time component -

TRVPrint.

Sequence of actions

RVPrint.AssignSource(RichView);

RVPrint.FormatPages;

// now you can print and print preview

RVPrint.Print


RVPrint allows to print several documents one after one on the same page(s)

(this feature is undocumented).


More complex positioning of document on page can be done with

TRVReportHelperComponent

Here is a demo showing TRVReportHelper:

http://www.trichview.com/support/files/toimage.zip

But this demo is very simplified: it is limited to one frame and screen

resolution.

The component does not support zooming directly. You need to use WinAPI

functions:

  SetMapMode(Canvas.Handle,MM_ANISOTROPIC);

  SetWindowExtEx(Canvas.Handle, Width, Height,nil);

  SetViewportExtEx(Canvas.Handle, PreviewWidth, PreviewHeight,nil)

  SetViewportOrgEx(Canvas.Handle,PreviewLeft,PreviewTop,nil);

  Canvas.Font.PixelsPerInch := target device's pixels per inch.

  // now you can draw page



3) TRichView and TRichViewEdit cannot be zoomed. Only the component for

print preview supports zooming



> Hi, i have some general question about TRichView :

>

> We are writting a editor at the moment, which itself generates many

> TRxRichEdits

> That means for every position i have about 6-8 RichEdits

> In the attached File you see a screenshoot how it looks at the momment

> (there you can see 28 Richedits)

>

> All works fine but :

> *) No justify alignment exists

> *) Printing is very komplex because you have to print everything with

> EM_FORMATRANGE ...

> *) Zooming didn't work realy exact

> *) Printing isn't the same what you see

>

> Here are my questions :

> *) Is TRichView a own Component or works it with a RichEdit ?

> *) How does printing work ?

> *) Can you zoom a TRichView ?

>

> Please give me as much infos as possible !

> regards

> Andreas

>

>

>

>





Powered by ABC Amber Outlook Express Converter