Page 1 of 1

Reportbuilder Wrapper Issue

Posted: Fri Jan 07, 2011 5:42 pm
by msimmons15
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.

Posted: Fri Jan 07, 2011 6:46 pm
by Sergey Tkachenko
Are you sure that this package is CHECKED in the list of installed packages?

Posted: Fri Jan 07, 2011 6:54 pm
by msimmons15
Absolutely sure. I just verified it again.

Posted: Sat Jan 08, 2011 9:34 am
by Sergey Tkachenko
I am afraid I do not know why it happens and how to fix (

Posted: Sun Jan 09, 2011 10:39 am
by kurtbilde
Have you verified the status of the package (Options -> Description)?

What are the usage options (Designtime only) and Build control (Explicit rebuild)

-Kurt

Posted: Sun Jan 09, 2011 11:26 pm
by msimmons15
The options were set to Designtime Only and Rebuild as needed. I tried changing to Explicit rebuild and there was no change in the behavior.

Mike

Posted: Mon Jan 10, 2011 3:24 pm
by Sergey Tkachenko
Please send this package to me (by email)

Reportbuilder Wrapper Issue

Posted: Fri Jan 13, 2012 8:46 pm
by ericbessette
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!!

Still interested in solution

Posted: Fri Jan 13, 2012 11:48 pm
by msimmons15
I was never able to resolve this, so I am still interested in a solution.

Thanks!

Posted: Mon Jan 16, 2012 3:25 pm
by ericbessette
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.

Solution worked for me!

Posted: Mon Jan 16, 2012 3:52 pm
by msimmons15
I followed your steps and the problem has gone away for me as well.

Thanks very much!

It works for me, too

Posted: Wed Mar 14, 2012 12:51 pm
by Joe
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

Posted: Mon Jan 07, 2013 4:12 pm
by JonRobertson
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!