FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TxtToRTF()
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM

Re: TxtToRTF()

Posted: Mon Mar 14, 2022 03:16 PM

Hello

there is a function TxtToRTF() ?

Maurizio

Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM

Re: TxtToRTF()

Posted: Mon Mar 14, 2022 06: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
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM

Re: TxtToRTF()

Posted: Mon Mar 14, 2022 06: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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: TxtToRTF()

Posted: Tue Mar 15, 2022 09:43 AM

We will have it in the next version.

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion