TxtToRTF()

Re: TxtToRTF()

Postby Maurizio » Mon Mar 14, 2022 3:16 pm

Hello

there is a function TxtToRTF() ?

Maurizio
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Re: TxtToRTF()

Postby TimStone » Mon Mar 14, 2022 6:11 pm

Yes, we can read / manipulate / save RTF data. HOWEVER, after many months, we are still. not able to PRINT RTF as part of a more complex document.

Using the wonderful PRINT class in FWH, we can do so much. However, consider the invoice:

For address and invoice information, we can print text very easily.

We can add text colors and boxes

We can do columns, and vary row content.

However, we cannot give this option to the enduser.
My clients want to print Disclaimer text at the end of invoices, and have the ability to change it themselves.
They want to change font sizes, use bold and underline, and perhaps even colors.
We can create this on screen
We can save it in a memo field.

Bust WE CANNOT PRINT IT.

In the printer class, we need the ability to use:
oPrn:SayRTF( nRow, nCsp * 2, oRTF, nRow +lRTF, nCsp + 60 )
Where nRow is the starting row, nCsp is the starting column, lRTF is the length of the RTF in rows, and oRTF is the actual RTF text derived from the memo field.

Months ago we were supposed to be very close.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: TxtToRTF()

Postby Otto » Mon Mar 14, 2022 6:44 pm

Hello Maurizio,
I print RTF blocks with EasyReport.

But I think the source I posted can be used also for printer object.

Best regards,
Otto
PS: Sei a Riva per la fiera dell'ospitalità?
Potrei andarci.

https://forums.fivetechsupport.com/viewtopic.php?f=3&t=35741&p=212967&sid=faeec4045cb0fccc5f52d3d0183937a7&sid=faeec4045cb0fccc5f52d3d0183937a7#p212967
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6329
Joined: Fri Oct 07, 2005 7:07 pm

Re: TxtToRTF()

Postby nageswaragunupudi » Tue Mar 15, 2022 9:43 am

We will have it in the next version.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10627
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 113 guests