FastReport wapper

General TRichView support forum. Please post your questions here
gully
Posts: 16
Joined: Tue Sep 13, 2005 10:08 am
Location: Czech Republic
Contact:

Post by gully » Tue Dec 21, 2010 12:54 am

Any news about FastReport wrapper, Sergey?

Sergey Tkachenko
Site Admin
Posts: 14729
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko » Tue Dec 21, 2010 5:03 pm

Sorry, no news yet.

andrew_s_vaz
Posts: 22
Joined: Thu Sep 30, 2010 8:49 pm
Location: Brazil

Post by andrew_s_vaz » Sun Sep 29, 2013 7:56 am

Sergey, is there a wrapper for FastReport in v14?
Forgive me for this rant, but I'm having lots of problems...
I'm using v13 and it simply is horrible to use with FastReport so far. The only way I can print is if I save whatever it is as a rvf file and then atribute it on the report... and this is very bad.

Have you fought with the people from FastReport...? I really don't understand why it takes so long to have a wrapper for the report generator that comes as a default with Delphi.

spikija
Posts: 1
Joined: Mon Oct 14, 2019 10:29 am

Re: FastReport wapper

Post by spikija » Mon Oct 14, 2019 10:41 am

Hello.
Any news about FastReport wrapper?

Don't know if you know that, but RichEdit from Fastreport does not work from Delphi DLL (Datasnap) because it is not Thread Safe and depends on windows DLL.

As I can see TRichView does not depend on windows dll so FastReport wrapper could be solution for us who can't use richEdit from FastReport.

I also looked for one solution on web, but it's not working. I tested with demo version of TRichView, but if there would be FastReport wrapper then would definitely be interested in buying TRichView.

Thanks for answer.

Sergey Tkachenko
Site Admin
Posts: 14729
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: FastReport wapper

Post by Sergey Tkachenko » Mon Oct 14, 2019 5:09 pm

Sorry, still no news about FR wrapper

adamrich
Posts: 35
Joined: Sun Feb 19, 2006 1:55 pm

Re: FastReport wapper

Post by adamrich » Tue Oct 15, 2019 2:05 pm

Hello,

Here is what I did to use TRichview with fastreport.
1-Open fastreport, create new empty report page (all margins =0) drop tfrxRichview , align to client, save it with any name.
2-Create your rtf file with richview action, you can add your fastreport variables as [x] and save it as rtf

example:
Hello world my name [name]

Now on Delphi app. call the report and load the rtf file.

frxReport1.LoadFromFile('FastReportFilename.rf3');

if fileexists('RichviewRTF.rtf') then
begin
Component := PrintForms.FindObject('Rich1');
if Component is TfrxRichView then
begin
TfrxRichView(Component).RichEdit.Clear;
TfrxRichView(Component).RichEdit.Lines.LoadFromFile('RichviewRTF.rtf');
end;

end;
also you can pass your variables as:
frxReport1.Variables['name'] := QuotedStr('Adam') ;
frxReport1.ShowReport;

In this case you don't need wrapper , and that works perfectly, but , but I couldn't make the table work , I spent hours, no luck :(

Hope this helps

Post Reply