Reportbuilder Wrapper Issue
-
- Posts: 29
- Joined: Mon Oct 25, 2010 3:59 pm
Reportbuilder Wrapper Issue
Hi,
I'm using the TRichview Wrapper for reportbuilder with Delphi 2007 and Reportbuilder 12. I can install this package (rvrb12D2007) and it will work fine as long as Delphi is left running.
But if I shut down delphi and restart it: I can still see the package is in the list of packages, but I receive the error Class TppRichview not found. If I remove the package and reinstall, it continues to work again until I shut down and restart Delphi.
I've verified the source paths are in the library path.
Any suggestions?
Thanks,
Mike Simmons
ISD Inc.
I'm using the TRichview Wrapper for reportbuilder with Delphi 2007 and Reportbuilder 12. I can install this package (rvrb12D2007) and it will work fine as long as Delphi is left running.
But if I shut down delphi and restart it: I can still see the package is in the list of packages, but I receive the error Class TppRichview not found. If I remove the package and reinstall, it continues to work again until I shut down and restart Delphi.
I've verified the source paths are in the library path.
Any suggestions?
Thanks,
Mike Simmons
ISD Inc.
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 29
- Joined: Mon Oct 25, 2010 3:59 pm
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 29
- Joined: Mon Oct 25, 2010 3:59 pm
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 7
- Joined: Thu Aug 25, 2011 1:12 pm
Reportbuilder Wrapper Issue
I actually have the issue described here. I have this problem with RB12- Delphi 2009 and also on my new RB14-DelphiXE2 setup. I'm using last version of TrichView and Wrapper.
To be able to work, I need to uninstall the wrapper. Reinstall and Keep Delphi open. Then I can open my project and play.
If I don't reinstall the wrapper, I can open my project and work on any form other than the one containing the report. Building is fine, the application runs perfectly and the report as well. But I get the error when I need to open the form with the report.
Right now it's even more annoying since I can't add the form to another project. So I'd like to have this fixed.
Thanks for the help!!
To be able to work, I need to uninstall the wrapper. Reinstall and Keep Delphi open. Then I can open my project and play.
If I don't reinstall the wrapper, I can open my project and work on any form other than the one containing the report. Building is fine, the application runs perfectly and the report as well. But I get the error when I need to open the form with the report.
Right now it's even more annoying since I can't add the form to another project. So I'd like to have this fixed.
Thanks for the help!!
-
- Posts: 29
- Joined: Mon Oct 25, 2010 3:59 pm
Still interested in solution
I was never able to resolve this, so I am still interested in a solution.
Thanks!
Thanks!
-
- Posts: 7
- Joined: Thu Aug 25, 2011 1:12 pm
Maybe i found the problem!!!
It seems that Delphi has a feature to delayed package loading to optimize startup speed. It doesn't load non-needed packkages.
There is a way to bypass this feature and it looks that was the problem here.
in ppRichViewDsgn.pas, procedure Register should be:
procedure Register;
begin
ForceDemandLoadState(dlDisable); //new line for always loading the design package
RegisterNoIcon([TppRichView, TppDBRichView]);
end;
Add "DesignIntf" to the uses clause. Rebuilt and install package.
Since I've done that, It has not crashed again.
Hope it helps. Maybe this should be added to the "released" wrapper component.
It seems that Delphi has a feature to delayed package loading to optimize startup speed. It doesn't load non-needed packkages.
There is a way to bypass this feature and it looks that was the problem here.
in ppRichViewDsgn.pas, procedure Register should be:
procedure Register;
begin
ForceDemandLoadState(dlDisable); //new line for always loading the design package
RegisterNoIcon([TppRichView, TppDBRichView]);
end;
Add "DesignIntf" to the uses clause. Rebuilt and install package.
Since I've done that, It has not crashed again.
Hope it helps. Maybe this should be added to the "released" wrapper component.
-
- Posts: 29
- Joined: Mon Oct 25, 2010 3:59 pm
Solution worked for me!
I followed your steps and the problem has gone away for me as well.
Thanks very much!
Thanks very much!
It works for me, too
Thank you for this exact explanation.
I had the same problem in Delphi 2010, ReportBuilder 14.03, and RB Wrapper 1.13.1.
Now it works!
Joe
I had the same problem in Delphi 2010, ReportBuilder 14.03, and RB Wrapper 1.13.1.
Now it works!
Joe
-
- Posts: 164
- Joined: Tue Nov 08, 2011 5:11 pm
I had installed the ReportBuilder wrapper back when I originally installed TRichView, but I just now had a need for it. I couldn't open the demo project because Delphi said the TppRichView component could not be found. And I couldn't add the component to my own report.
Disabling the delayed load (via ForceDemandLoadState) solved my issue as well! Thank you very much!
Disabling the delayed load (via ForceDemandLoadState) solved my issue as well! Thank you very much!