Problem installing RichView Wrapper for ReportBuilder 15

General TRichView support forum. Please post your questions here
Post Reply
Joe
Posts: 28
Joined: Tue Feb 14, 2012 6:15 am

Problem installing RichView Wrapper for ReportBuilder 15

Post by Joe »

Hello all,

Windows 7
Delphi XE2
ReportBuilder 15.01
TRichView 14.8
RichViewActions 4.4

I updated ReportBuilder 14.x to 15.01 and now I try to install the new RichView Wrapper for ReportBuilder 1.16. Unfortunately, there is no "rvrb15DXE2.bpl". So I tried it with "rvrb15DXE4.bpl". When selecting "Install" in the project explorer I get the message that the package RVPKGDXE4 cannot be found.

How can I install the Wrapper 1.16 with Delphi XE2?

Thank you in advance
Joe
Sergey Tkachenko
Site Admin
Posts: 17604
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Yes, we do not provide packages for RB wrapper for all versions of Delphi.
You can create XE2 package from XE4 package. After opening it in Delphi, delete all references to TRichView and ReportBuilder packages from "Requires" section in the Project Manager. Then install. Delphi should ask for adding the proper packages in "Requires", allow it.
Joe
Posts: 28
Joined: Tue Feb 14, 2012 6:15 am

Post by Joe »

Thank you for your answer, Sergey.

As you suggested, I opened the rvrb15DXE4.dproj and deleted all entries from the "Requires" section.

When I install, the compiler stops in the file ppPDFRendererRV.pas in the procedure TppPDFRendererRichView.RenderToPDF() at line
lRenderer.PDFCanvas.InitOrigin := False;
with "undeclared identifier InitOrigin".

Do you have any further advice?

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

Post by Sergey Tkachenko »

Hmm, may be ReportBuilder removed this property? It was there when I tested with RB14 and RB15.
As a workaround, comment out this line, I'll check when I return from vacation.
Joe
Posts: 28
Joined: Tue Feb 14, 2012 6:15 am

Post by Joe »

Ok, I did that - but now the compiler stops at another location with another "Undeclared..." message.

So, for the moment don't think further on that. For now I wish you some relaxed days and nice vacation.

And when you are back please have a look at the problem.

Best regards
Joe
Joe
Posts: 28
Joined: Tue Feb 14, 2012 6:15 am

Post by Joe »

Hello Sergey,

I worked again on the problem and found out that the RB 15 setup program did not remove all previous RB 14 components.

So I did a manual clean up and mad a fresh installation of RB 15.01.

Then, I created a wrapper for Delphi XE2 the following way (here modified, but like you suggested a long time ago for Delphi 2010):

1) Open rvrb15DXE4.dproj in Delphi and save it as rvrb15DXE2.dproj.
2) Close it in Delphi.
3) Open rvrb15DXE2.dpk in Notepad. Change all substrings "DXE4" to "DXE2", and "1518" to "1516". Save.
4) Open rvrb15DXE2.dproj in Notepad. Do the same changes.
5) Open rvrb15DXE2.dproj in Delphi and choose "Install".

During install, the compiler stops in the file ppPDFRendererRV.pas in the procedure TppPDFRendererRichView.RenderToPDF() at line
lRenderer.PDFCanvas.InitOrigin := False;
with "undeclared identifier InitOrigin".

I commented this line out, and now everything works (as far as I can proove at the moment).

This just for your information - but perhaps you could verify what's the matter with the "InitOrigin" and post here?

Best regards
Joe
Sergey Tkachenko
Site Admin
Posts: 17604
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

This property was renamed in ReportBuilder 15.01.
Now this line must be

Code: Select all

PDFSettings.CanvasInitOrigin := False;
Joe
Posts: 28
Joined: Tue Feb 14, 2012 6:15 am

Post by Joe »

Great! Thank you very much!

Joe
Joe
Posts: 28
Joined: Tue Feb 14, 2012 6:15 am

Post by Joe »

Perphaps it might be important to others:

After changing the code

from
lRenderer.PDFCanvas.InitOrigin := False;
to
PDFSettings.CanvasInitOrigin := False;

the project compiles, but when printing from Report Builder's preview to a .PDF file an access violation occurs.

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

Post by Sergey Tkachenko »

I cannot reproduce this problem. Please send me a sample project reproducing it (to richviewgmailcom )
Joe
Posts: 28
Joined: Tue Feb 14, 2012 6:15 am

Post by Joe »

I just found out that there is a new version 1.16.02 of the Report Builder wrapper. With this everything works fine.

Sergey is the best!
Post Reply