trichview.com

trichview.support




Re: Advice - Printing


Return to index


Author

Message

Sergey Tkachenko

Posted: 10/14/2003 9:34:49


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