Reportbuilder Wrapper Issue

General TRichView support forum. Please post your questions here
Post Reply
msimmons15
Posts: 29
Joined: Mon Oct 25, 2010 3:59 pm

Reportbuilder Wrapper Issue

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17524
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Are you sure that this package is CHECKED in the list of installed packages?
msimmons15
Posts: 29
Joined: Mon Oct 25, 2010 3:59 pm

Post by msimmons15 »

Absolutely sure. I just verified it again.
Sergey Tkachenko
Site Admin
Posts: 17524
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I am afraid I do not know why it happens and how to fix (
kurtbilde
Posts: 48
Joined: Mon Jan 12, 2009 10:26 am
Location: Denmark

Post 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
msimmons15
Posts: 29
Joined: Mon Oct 25, 2010 3:59 pm

Post 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
Sergey Tkachenko
Site Admin
Posts: 17524
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Please send this package to me (by email)
ericbessette
Posts: 7
Joined: Thu Aug 25, 2011 1:12 pm

Reportbuilder Wrapper Issue

Post 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!!
msimmons15
Posts: 29
Joined: Mon Oct 25, 2010 3:59 pm

Still interested in solution

Post by msimmons15 »

I was never able to resolve this, so I am still interested in a solution.

Thanks!
ericbessette
Posts: 7
Joined: Thu Aug 25, 2011 1:12 pm

Post 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.
msimmons15
Posts: 29
Joined: Mon Oct 25, 2010 3:59 pm

Solution worked for me!

Post by msimmons15 »

I followed your steps and the problem has gone away for me as well.

Thanks very much!
Joe
Posts: 28
Joined: Tue Feb 14, 2012 6:15 am

It works for me, too

Post 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
JonRobertson
Posts: 164
Joined: Tue Nov 08, 2011 5:11 pm

Post 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!
Post Reply