RePrint -- richtext

RePrint -- richtext

Postby reinaldocrespo » Sun Feb 05, 2006 7: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.
User avatar
reinaldocrespo
 
Posts: 972
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Postby James Bott » Mon Feb 06, 2006 8: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Silvio » Mon Feb 06, 2006 8: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
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby reinaldocrespo » Mon Feb 06, 2006 5: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.
User avatar
reinaldocrespo
 
Posts: 972
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Postby reinaldocrespo » Mon Feb 06, 2006 5: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.
User avatar
reinaldocrespo
 
Posts: 972
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Postby Silvio » Fri Feb 10, 2006 8:57 am

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

Postby Silvio » Fri Feb 10, 2006 8:58 am

User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby reinaldocrespo » Fri Feb 10, 2006 1:36 pm

Silvio;

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

Thank you,



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

Postby reinaldocrespo » Fri Feb 10, 2006 3:47 pm

Silvio;

Would you mind sending me trichprev.prg?

reinaldocrespo@structuredsystems.com

Thank you,


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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 83 guests