Page 1 of 1

Problem installing RichView Wrapper for ReportBuilder 15

Posted: Sat Sep 07, 2013 9:48 am
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

Posted: Sat Sep 07, 2013 1:03 pm
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.

Posted: Sat Sep 07, 2013 1:44 pm
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

Posted: Sat Sep 07, 2013 8:05 pm
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.

Posted: Sun Sep 08, 2013 9:06 am
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

Posted: Tue Sep 10, 2013 2:39 pm
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

Posted: Mon Sep 23, 2013 11:12 am
by Sergey Tkachenko
This property was renamed in ReportBuilder 15.01.
Now this line must be

Code: Select all

PDFSettings.CanvasInitOrigin := False;

Posted: Mon Sep 23, 2013 11:48 am
by Joe
Great! Thank you very much!

Joe

Posted: Wed Sep 25, 2013 6:54 am
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

Posted: Wed Sep 25, 2013 10:09 am
by Sergey Tkachenko
I cannot reproduce this problem. Please send me a sample project reproducing it (to richviewgmailcom )

Posted: Thu Sep 26, 2013 5:41 am
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!