Loading external file
DO you know if, in the report, the syntax :
RichTitre1.loadFromFile('Titre1.rtf') (where RichTitre1 is a tfrRichView)
is allowed ?
I have the solution to load the file in the code (Delphi) but it seems to be inefficient in the report script.
TU
RichTitre1.loadFromFile('Titre1.rtf') (where RichTitre1 is a tfrRichView)
is allowed ?
I have the solution to load the file in the code (Delphi) but it seems to be inefficient in the report script.
TU
Comments
Did u get the solution Philnext?
The difference is that I'd need to load also the Richedit content from a BLOB field in a database...
Does 1 know how to do this? To load the content of the richedit to the frrichview in the report? thanks
Do you need the solution for loading in the Delphi code ?
put the TfrRxRichObject in your project.
Then, put the richview object in your report.
Then, select that object.. and go to the report's inspector object... then u can assign a database field to the richview object.
It loads perfectly the richview data from the blob file.
The only thin we gotta learn now is how to load the contents from the rtf file located in the disk... but i think that the richview object must have the function include in its own code...
try accessing the functions and props. of the report's richview object and I'm sure you'll find something...
if i find something, i'll post a reply
cya
i solved only to load from blob field...
regards
The reply for the blob is clear.
For information I post the solution (yet in the forum I know !) for loading the *.rtf in the code : But ... I don't know if it is possible IN the report...(it was my question !)
but you won't be able to test file existence unless you use a get val function for a variable or write an onuserfuntion and return a test value.
regards
gord
I wrote this code in the rtf object memo and nothing happens.... can anyone tell me what's wrong ?
thanks