Hello
there is a function TxtToRTF() ?
Maurizio
TxtToRTF()
- TimStone
- Posts: 2956
- Joined: Fri Oct 07, 2005 1:45 pm
- Location: Trabuco Canyon, CA USA
- Has thanked: 25 times
- Been thanked: 2 times
- Contact:
Re: TxtToRTF()
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.
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
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
- Otto
- Posts: 6414
- Joined: Fri Oct 07, 2005 7:07 pm
- Has thanked: 30 times
- Been thanked: 2 times
- Contact:
Re: TxtToRTF()
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
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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
- nageswaragunupudi
- Posts: 10729
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 10 times
- Contact: