trichview.com

trichview.support




Re: Margins...


Return to index


Author

Message

richk

Posted: 04/25/2002 16:55:19


OK, thank you :-)


"Sergey Tkachenko" <[email protected]> wrote in message

news:[email protected]...

> > There are two sets of Margins: *Margin and *MarginMM. Why are there two?

> Is

> > one for the non-printable area and the other for user defined margins?

>

> *MarginMM are applied only on paper/print preview.

> *Margin are applied both on paper and in editor.

>

> There is a picture showing difference between these margings at the bottom

> of the help topic about TRVPrint.

> Look at it - a picture worths a thousand words.

>

> >

> > Also, will I need to create conversion routines for inches to pixels? In

> > other words if I want to allow the user to input margin settings in

inches

> > what do I do after I get the users input? If the user inputs a margin

> > setting of 1 inch I cannot set LeftMargin to 1, because that is not 1

inch

> > it is one pixel. So if I want a 1 inch margin setting to be available to

> > users and they have different screen resolutions, what will I do with

the

> > RichViewEdit to set a margin of 1 inch?

>

> You can calculate value by formula:

> (size in screen pixels) = (size in inches) * Screen.PixelsPerInch.

> // when printing, RichView will keep size in inches - it recalculates

> // size in pixels according to printer and screen resolution

>

> (size in millimeters) = (size in inches) * 127 / 5

>

> However, there is a problem.

> If another user will open this document on computer with another

> Screen.PixelsPerInch value,

> distance in inches will not be preserved.

> I'll try to solve this problem in the next version.

>

>





Powered by ABC Amber Outlook Express Converter