trichview.com

trichview.support




Re: Advice - Printing


Return to index


Author

Message

Sergey Tkachenko

Posted: 10/14/2003 20:30:23


Well, if you use RichViewActions, try to create hidden RichViewEdit, and

assign it to rvactionprint.control before printing.


(two copies of TRVAControlPanel are useless - they will work exactly like

one copy - if you change a property in one of them, it will be changed in

another).


> I can't seem to make this work.  Here's what I have:

>

> editor = TRichViewEdit

> rvControlPanel = TRVAControlPanel

> rvStyle = TRVStyle

> rvPrint = TRVPrint

>

> rvControlPanel.DefaultControl = editor

> rvControlPanel.RVPrint = rvPrint

>

> Are you saying that I need an invisible TRichView on this form as well?  I

> don't see how to print a TRichView, only a TRichViewEdit.  Also, why can I

> not have two different RVAControlPanel with different settings?  Say I

have

> two RichViewEdits and I want to control them with different control

panels.

> The settings are changed for both control panels.  Why is that?

>

> Thanks

>

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

> news:[email protected]...

> > The simplest way - to create a new document (in invisible TRichView) and

> > print it.

> >

> > rv.Clear;

> > rv.AddNL('From: ', ...);

> > rv.Add(email.From, ...);

> > rv.AddNL('Subject: ', ...);

> > rv.Add(email.Subject, ...);

> >

> > stream := TMemoryStream.Create;

> > rvmessage.SaveRVFToStream(stream);

> > stream.Position := 0;

> > rv.InsertRVFFromStream(stream, rv.ItemCount);

> > stream.Free;

> >

> >

> >

> >

> >

> > > Just on the first page.

> > >

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

> > > news:[email protected]...

> > > > Do you want to include them before the message, or on each page?

> > > >

> > > >

> > > > > I'm using the TRichViewEdit in an email application.  The RichView

> > > > contains

> > > > > the body of the message.  I want to print a message, but I want to

> > > include

> > > > > the To, From, Subject, and Date, just like if you print a message

in

> > > > > Outlook.  What would be the best way to do this?

> > > > >

> > > > > Thanks,

> > > > >

> > > > > David

> > > > >

> > > > >

> > > >

> > > >

> > >

> > >

> >

> >

>

>





Powered by ABC Amber Outlook Express Converter