FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour RePrint -- richtext
Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
RePrint -- richtext
Posted: Sun Feb 05, 2006 07:51 PM

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.

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
RePrint -- richtext
Posted: Mon Feb 06, 2006 08:02 AM

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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
RePrint -- richtext
Posted: Mon Feb 06, 2006 08:23 AM

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

Best Regards, Saludos



Falconi Silvio
Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
RePrint -- richtext
Posted: Mon Feb 06, 2006 05:01 PM

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.

Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
RePrint -- richtext
Posted: Mon Feb 06, 2006 05:03 PM

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.

Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
RePrint -- richtext
Posted: Fri Feb 10, 2006 08:57 AM

I put the file on another post ( italian forum)

Best Regards, Saludos



Falconi Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
RePrint -- richtext
Posted: Fri Feb 10, 2006 08:58 AM
Best Regards, Saludos



Falconi Silvio
Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
RePrint -- richtext
Posted: Fri Feb 10, 2006 01:36 PM

Silvio;

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

Thank you,

Reinaldo.

Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
RePrint -- richtext
Posted: Fri Feb 10, 2006 03:47 PM

Silvio;

Would you mind sending me trichprev.prg?

reinaldocrespo@structuredsystems.com

Thank you,

Reinaldo.

Continue the discussion