FastReport wapper
-
- Site Admin
- Posts: 17522
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 22
- Joined: Thu Sep 30, 2010 8:49 pm
- Location: Brazil
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.
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.
Re: FastReport wapper
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.
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.
-
- Site Admin
- Posts: 17522
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: FastReport wapper
Sorry, still no news about FR wrapper
Re: FastReport wapper
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
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
Re: FastReport wapper
If there were a Fastreport-Wrapper we would buy TRichview.
(We can't use TfrxRichView because it crashes our application while closing the main window; reporting is done in a COM-Component, called by a C++-MFC-App).
(We can't use TfrxRichView because it crashes our application while closing the main window; reporting is done in a COM-Component, called by a C++-MFC-App).
-
- Site Admin
- Posts: 17522
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: FastReport wapper
FastReport wrapper is not planned for near future, at least not in this year, sorry.