Page 1 of 1

RePrint -- richtext

Posted: Sun Feb 05, 2006 7:51 pm
by reinaldocrespo
Hi.

Back with more richtext needs.

In hopes of printing rtfs to an existing and opened oprn:hdc and only occupy a given region of the document, I'm taking a peek at HB_FUNC( REPRINT ).

I can't see how using RePrint. It would take some serious modifications.

I think the fw world would really benefit from having the ability to print rtf text to a region of a trpinter object. Or just add rtf printing to tprinter. Something like:

oprn:RtfPrint( ntop, nLeft, nbottom, nRight, oRTF:GetSel() )

::rtfPrint would print the selected text with its attributes --that is font, color, background color, etc...


I'm hoping some of the Guru's here can shed some light on the subject.


Reinaldo.

Posted: Mon Feb 06, 2006 8:02 am
by James Bott
Reinaldo,

I did some searching and I found this page:

http://home.att.net/~robertdunn/Papers/REPnP2.html

I think the answer may be there. It shows how to print an Richedit control in a specified area of a page.

James

Posted: Mon Feb 06, 2006 8:23 am
by Silvio
thanks to all

WITH EM_FORMATRANGE I finished the method Preview on Trichedit class

this routine change the rtf format into EMF format : we can use it and put on rpreview program

I 'm testing it and perhaps This morning I insert it on Forum it is very usefull and it run with our rpreview program.

It run ok.....

I post later here

Posted: Mon Feb 06, 2006 5:01 pm
by reinaldocrespo
James;

I read through it. I will spend time today trying to implement it. Not very complex. Just thick. It seems like it will work.

Thank you.


Reinaldo.

Posted: Mon Feb 06, 2006 5:03 pm
by reinaldocrespo
Silvio,

Thanks for your help. Your work is a much needed feature, but I think it is a bit different than my pressing need at the time. Please do post your work or send it to me via e-mail. It should help with my needs.

Much appreciated.


Reinaldo.

Posted: Fri Feb 10, 2006 8:57 am
by Silvio
I put the file on another post ( italian forum)

Posted: Fri Feb 10, 2006 8:58 am
by Silvio

Posted: Fri Feb 10, 2006 1:36 pm
by reinaldocrespo
Silvio;

I'm glad you remember. I'll take a look today.

Thank you,



Reinaldo.

Posted: Fri Feb 10, 2006 3:47 pm
by reinaldocrespo
Silvio;

Would you mind sending me trichprev.prg?

reinaldocrespo@structuredsystems.com

Thank you,


Reinaldo.