RePrint -- richtext

Post Reply
User avatar
reinaldocrespo
Posts: 918
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

RePrint -- richtext

Post 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.
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post 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
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post 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
User avatar
reinaldocrespo
Posts: 918
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Post 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.
User avatar
reinaldocrespo
Posts: 918
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Post 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.
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

I put the file on another post ( italian forum)
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

User avatar
reinaldocrespo
Posts: 918
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Post by reinaldocrespo »

Silvio;

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

Thank you,



Reinaldo.
User avatar
reinaldocrespo
Posts: 918
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Post by reinaldocrespo »

Silvio;

Would you mind sending me trichprev.prg?

reinaldocrespo@structuredsystems.com

Thank you,


Reinaldo.
Post Reply