Setting Margins in Document From Rich Text Control

Setting Margins in Document From Rich Text Control

am 23.10.2007 19:23:40 von DM McGowan II

I'm using a rich text control (the FMS version), and am using the SaveFile
method to create an RTF document from the control. I need to be able to set
the right and left margins of the created RTF document.

The FMS control exposes the Microsoft TOM Interface by providing the
TextDocument property of the control. However, it's not clear how right and
left margins in the document created using SaveFile could be set. Any ideas?

Thanks!

Re: Setting Margins in Document From Rich Text Control

am 23.10.2007 21:29:07 von Larry Linson

"Neil" wrote

> I'm using a rich text control (the FMS version), and
> am using the SaveFile method to create an RTF document
> from the control. I need to be able to set the right and left
> margins of the created RTF document.
>
> The FMS control exposes the Microsoft TOM Interface
> by providing the TextDocument property of the control.
> However, it's not clear how right and left margins in the
> document created using SaveFile could be set. Any ideas?

What did FMS say, when you asked them? They are, of course, the first and
primary source of support for their products. Asking them directly would be
my first and primary suggestion.

Larry Linson
Microsoft Access MVP

Re: Setting Margins in Document From Rich Text Control

am 24.10.2007 01:22:35 von DM McGowan II

The Microsoft TOM Interface is a Microsoft entity. FMS provides
functionality in their control for most rich text functionality. Beyond
that, they provide access to the TOM Interface to access additional items in
the Microsoft Rich Text Object Model that they have not provided for in
their control.

This would be akin to Microsoft providing the ability to call API functions
from within Microsoft Access, but not providing support for the API
functions, themselves (except that, in that case, Microsoft also develops
Windows, so they would be the developers of the API functions as well).

Thus, FMS provides support for their control, and provide the TextDocument
property so as to be able to directly access the TOM Interface. Beyond that,
they don't provide support for the TOM functions that they have not
explicitly placed in their control.

Neil


"Larry Linson" wrote in message
news:7YrTi.3755$uE4.2688@trnddc07...
>
> "Neil" wrote
>
> > I'm using a rich text control (the FMS version), and
> > am using the SaveFile method to create an RTF document
> > from the control. I need to be able to set the right and left
> > margins of the created RTF document.
> >
> > The FMS control exposes the Microsoft TOM Interface
> > by providing the TextDocument property of the control.
> > However, it's not clear how right and left margins in the
> > document created using SaveFile could be set. Any ideas?
>
> What did FMS say, when you asked them? They are, of course, the first and
> primary source of support for their products. Asking them directly would
> be my first and primary suggestion.
>
> Larry Linson
> Microsoft Access MVP
>