Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Rave11 Developer Edition / Delphi XE6 / ZeosDBO / MySQL - Some Tweaks



Permlink Replies: 8 - Last Post: Oct 14, 2014 7:49 PM Last Post By: Tristan Marlow
Tristan Marlow

Posts: 8
Registered: 7/17/08
Rave11 Developer Edition / Delphi XE6 / ZeosDBO / MySQL - Some Tweaks
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 11, 2014 2:12 AM
Hi,

Just thought I would share my notes on my Rave 11 success with Delphi
XE6. This was the final piece of the puzzle to get our application
migrated to XE6 and I am glad Nevrona have release new versions.

Overall it has been good, I have only had a few tweaks here and there.
Below are a few issue I have resolved that may help others.

1.) RAVE settings location (INI File)
2.) Report Events cause Access Violation when
RaveProject.GetParam('FooterImage') <> '' in use.
3.) LargeInt Invalid Typecast
4.) JPEG Support



1.) Settings location. I wanted to move my RAVE installation. The
settings INI file is located in D:\Users{username}\Documents\Rave110.ini

This contains references to the Packages you will need to change. I have
also found that if you disable a packet it does not work so removing
from here is best.

[Packages]
Rave Graphics Components=C:\Program Files
(x86)\Embarcadero\Studio\14.0\source\Rave11RvGraphics110.bpl



2.) Access Violation for Param TRUE/ FALSE checks

This appears to be an issue with Boolean checks in Report OnBeforePrint
event.


Debugger Exception Notification

Project raised exception class $C0000005 with message 'access violation
at 0x00bfaf76: read of address 0x00000000'.

eg

This will error

if RaveProject.GetParam('FooterImage') <> '' then
BitmapFooter.FileLink := RaveProject.GetParam('FooterImage');
BitmapFooter.Visible := True;
else
BitmapFooter.Visible := False;
end if;

this will work

Value := RaveProject.GetParam('FooterImage');
if Value <> '' then
BitmapFooter.FileLink := Value;
BitmapFooter.Visible := True;
else
BitmapFooter.Visible := False;
end if;



3.) LargeInt Invalid Typecast

RpConDS.pas

LargeInt - Invalid Typecast

DoGetRow

dtInt64:
begin
// WriteInt64Data(DisplayText, (Fields[I1] as
TLargeIntField)
// .AsLargeInt);
WriteInt64Data(DisplayText,AsLargeInt); // Tristan



4.) JPEG support for standard RaveGraphic (Bitmap Component)

I have been unable to get the JPEG addon to appear in the component list
of Rave Reports.
http://rave-notes.blogspot.com.au/2010/01/jpeg-addon-for-rave-77-and-delphi-2010.html

I have found the work around to edit RvCSStd.pas

procedure TRaveGraphicImage.LoadFromStream(Stream: TStream);
var
WicImage: TWICImage;
begin { LoadFromStream }
UnloadAltImage;
FAltImage := CreateGraphic;

// Use new TWICImage to convert images.
WicImage := TWICImage.Create;
try
WicImage.LoadFromStream(Stream);
FAltImage.Assign(WicImage);
finally
FreeAndNil(WicImage);
end;

// FAltImage.LoadFromStream(Stream);

if not ImageValid then
begin { Invalid image format }
UnloadAltImage;
end; { if }
end; { LoadFromStream }

Tony Christiansen

Posts: 13
Registered: 4/4/03
Re: Rave11 Developer Edition / Delphi XE6 / ZeosDBO / MySQL - Some Tweaks
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 6, 2014 6:02 PM   in response to: Tristan Marlow in response to: Tristan Marlow
On 11/06/2014 7:12 PM, Tristan Marlow wrote:
Hi,

Just thought I would share my notes on my Rave 11 success with Delphi
XE6. This was the final piece of the puzzle to get our application
migrated to XE6 and I am glad Nevrona have release new versions.

Overall it has been good, I have only had a few tweaks here and there.
Below are a few issue I have resolved that may help others.

1.) RAVE settings location (INI File)
2.) Report Events cause Access Violation when
RaveProject.GetParam('FooterImage') <> '' in use.
3.) LargeInt Invalid Typecast
4.) JPEG Support


Hi Tristan

Thankyou for posting the info - invaluable as I am being held up by Rave
as well. I have a showstopper error in the TFilePreview component. Do
you use this component at all? Just like to know if it is Rave or me.

Regards
Tony
Tristan Marlow

Posts: 8
Registered: 7/17/08
Re: Rave11 Developer Edition / Delphi XE6 / ZeosDBO / MySQL - Some Tweaks
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 12, 2014 10:29 AM   in response to: Tony Christiansen in response to: Tony Christiansen
Hi Tony, I only use the default Rave default preview or render to PDF.

On 7/07/2014 9:02 AM, Tony Christiansen wrote:
On 11/06/2014 7:12 PM, Tristan Marlow wrote:
Hi,

Just thought I would share my notes on my Rave 11 success with Delphi
XE6. This was the final piece of the puzzle to get our application
migrated to XE6 and I am glad Nevrona have release new versions.

Overall it has been good, I have only had a few tweaks here and there.
Below are a few issue I have resolved that may help others.

1.) RAVE settings location (INI File)
2.) Report Events cause Access Violation when
RaveProject.GetParam('FooterImage') <> '' in use.
3.) LargeInt Invalid Typecast
4.) JPEG Support


Hi Tristan

Thankyou for posting the info - invaluable as I am being held up by Rave
as well. I have a showstopper error in the TFilePreview component. Do
you use this component at all? Just like to know if it is Rave or me.

Regards
Tony
Thomas Pfister

Posts: 1
Registered: 11/5/99
Re: Rave11 Developer Edition / Delphi XE6 / ZeosDBO / MySQL - Some Tweaks
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 9, 2014 12:27 PM   in response to: Tristan Marlow in response to: Tristan Marlow
Tristan,

thanks for "the reminder" here... next weekend I'll publish my AddOn-Version
for Rave 11 BEX on my blog.

:-) Thomas Pfister

________________________________________
This mail was sent using 100% recycled electrons

Hi,

Just thought I would share my notes on my Rave 11 success with Delphi
XE6. This was the final piece of the puzzle to get our application
migrated to XE6 and I am glad Nevrona have release new versions.

Overall it has been good, I have only had a few tweaks here and
there. Below are a few issue I have resolved that may help others.

1.) RAVE settings location (INI File)
2.) Report Events cause Access Violation when
RaveProject.GetParam('FooterImage') <> '' in use.
3.) LargeInt Invalid Typecast
4.) JPEG Support



1.) Settings location. I wanted to move my RAVE installation. The
settings INI file is located in
D:\Users{username}\Documents\Rave110.ini

This contains references to the Packages you will need to change. I
have also found that if you disable a packet it does not work so
removing from here is best.

[Packages]
Rave Graphics Components=C:\Program Files
(x86)\Embarcadero\Studio\14.0\source\Rave11RvGraphics110.bpl



2.) Access Violation for Param TRUE/ FALSE checks

This appears to be an issue with Boolean checks in Report
OnBeforePrint event.

Debugger Exception Notification

Project raised exception class $C0000005 with message 'access
violation
at 0x00bfaf76: read of address 0x00000000'.
eg

This will error

if RaveProject.GetParam('FooterImage') <> '' then
BitmapFooter.FileLink := RaveProject.GetParam('FooterImage');
BitmapFooter.Visible := True;
else
BitmapFooter.Visible := False;
end if;
this will work

Value := RaveProject.GetParam('FooterImage');
if Value <> '' then
BitmapFooter.FileLink := Value;
BitmapFooter.Visible := True;
else
BitmapFooter.Visible := False;
end if;



3.) LargeInt Invalid Typecast

RpConDS.pas

LargeInt - Invalid Typecast

DoGetRow

dtInt64:
begin
// WriteInt64Data(DisplayText, (Fields[I1] as
TLargeIntField)
// .AsLargeInt);
WriteInt64Data(DisplayText,AsLargeInt); // Tristan



4.) JPEG support for standard RaveGraphic (Bitmap Component)

I have been unable to get the JPEG addon to appear in the component
list of Rave Reports.
http://rave-notes.blogspot.com.au/2010/01/jpeg-addon-for-rave-77-and-d
elphi-2010.html

I have found the work around to edit RvCSStd.pas

procedure TRaveGraphicImage.LoadFromStream(Stream: TStream);
var
WicImage: TWICImage;
begin { LoadFromStream }
UnloadAltImage;
FAltImage := CreateGraphic;
// Use new TWICImage to convert images.
WicImage := TWICImage.Create;
try
WicImage.LoadFromStream(Stream);
FAltImage.Assign(WicImage);
finally
FreeAndNil(WicImage);
end;
// FAltImage.LoadFromStream(Stream);

if not ImageValid then
begin { Invalid image format }
UnloadAltImage;
end; { if }
end; { LoadFromStream }
Tristan Marlow

Posts: 8
Registered: 7/17/08
Re: Rave11 Developer Edition / Delphi XE6 / ZeosDBO / MySQL - Some Tweaks
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 13, 2014 10:33 PM   in response to: Thomas Pfister in response to: Thomas Pfister
Hi Thomas,

Did you get the Addon working?

Regards

Tristan

On 10/07/2014 3:27 AM, Thomas Pfister wrote:
Tristan,

thanks for "the reminder" here... next weekend I'll publish my AddOn-Version
for Rave 11 BEX on my blog.

:-) Thomas Pfister

________________________________________
This mail was sent using 100% recycled electrons

Hi,

Just thought I would share my notes on my Rave 11 success with Delphi
XE6. This was the final piece of the puzzle to get our application
migrated to XE6 and I am glad Nevrona have release new versions.

Overall it has been good, I have only had a few tweaks here and
there. Below are a few issue I have resolved that may help others.

1.) RAVE settings location (INI File)
2.) Report Events cause Access Violation when
RaveProject.GetParam('FooterImage') <> '' in use.
3.) LargeInt Invalid Typecast
4.) JPEG Support



1.) Settings location. I wanted to move my RAVE installation. The
settings INI file is located in
D:\Users{username}\Documents\Rave110.ini

This contains references to the Packages you will need to change. I
have also found that if you disable a packet it does not work so
removing from here is best.

[Packages]
Rave Graphics Components=C:\Program Files
(x86)\Embarcadero\Studio\14.0\source\Rave11RvGraphics110.bpl



2.) Access Violation for Param TRUE/ FALSE checks

This appears to be an issue with Boolean checks in Report
OnBeforePrint event.

Debugger Exception Notification

Project raised exception class $C0000005 with message 'access
violation
at 0x00bfaf76: read of address 0x00000000'.
eg

This will error

if RaveProject.GetParam('FooterImage') <> '' then
BitmapFooter.FileLink := RaveProject.GetParam('FooterImage');
BitmapFooter.Visible := True;
else
BitmapFooter.Visible := False;
end if;
this will work

Value := RaveProject.GetParam('FooterImage');
if Value <> '' then
BitmapFooter.FileLink := Value;
BitmapFooter.Visible := True;
else
BitmapFooter.Visible := False;
end if;



3.) LargeInt Invalid Typecast

RpConDS.pas

LargeInt - Invalid Typecast

DoGetRow

dtInt64:
begin
// WriteInt64Data(DisplayText, (Fields[I1] as
TLargeIntField)
// .AsLargeInt);
WriteInt64Data(DisplayText,AsLargeInt); // Tristan



4.) JPEG support for standard RaveGraphic (Bitmap Component)

I have been unable to get the JPEG addon to appear in the component
list of Rave Reports.
http://rave-notes.blogspot.com.au/2010/01/jpeg-addon-for-rave-77-and-d
elphi-2010.html

I have found the work around to edit RvCSStd.pas

procedure TRaveGraphicImage.LoadFromStream(Stream: TStream);
var
WicImage: TWICImage;
begin { LoadFromStream }
UnloadAltImage;
FAltImage := CreateGraphic;
// Use new TWICImage to convert images.
WicImage := TWICImage.Create;
try
WicImage.LoadFromStream(Stream);
FAltImage.Assign(WicImage);
finally
FreeAndNil(WicImage);
end;
// FAltImage.LoadFromStream(Stream);

if not ImageValid then
begin { Invalid image format }
UnloadAltImage;
end; { if }
end; { LoadFromStream }
Tony Christiansen

Posts: 13
Registered: 4/4/03
Re: Rave11 Developer Edition / Delphi XE6 / ZeosDBO / MySQL - Some Tweaks
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 14, 2014 6:19 PM   in response to: Tristan Marlow in response to: Tristan Marlow
On 14/10/2014 3:03 PM, Tristan Marlow wrote:
Hi Thomas,

Did you get the Addon working?

I believe Nevrona fixed the greenbar and jpegimage addons in v11.0.8

regards
Tristan Marlow

Posts: 8
Registered: 7/17/08
Re: Rave11 Developer Edition / Delphi XE6 / ZeosDBO / MySQL - Some Tweaks
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 14, 2014 7:49 PM   in response to: Tony Christiansen in response to: Tony Christiansen
Ah thanks I did not realize the registration download page was showing
new releases.

Still find this Invalid Typecast to be an issue, I will send it to
Nevrona again.

RpConDS.pas

LargeInt - Invalid Typecast

DoGetRow

dtInt64:
begin
// WriteInt64Data(DisplayText, (Fields[I1] as
TLargeIntField)
// .AsLargeInt);
WriteInt64Data(DisplayText,AsLargeInt); // Tristan

No other sections Type cast it eg

dtFloat: begin
WriteFloatData(DisplayText,AsFloat);
end;

On 15/10/2014 9:19 AM, Tony Christiansen wrote:

On 14/10/2014 3:03 PM, Tristan Marlow wrote:
Hi Thomas,

Did you get the Addon working?

I believe Nevrona fixed the greenbar and jpegimage addons in v11.0.8

regards
Kris Golko

Posts: 1
Registered: 3/16/00
Re: Rave11 Developer Edition / Delphi XE6 / ZeosDBO / MySQL - Some Tweaks
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 12, 2014 1:26 AM   in response to: Tristan Marlow in response to: Tristan Marlow
Does it include the source code?

On 11/06/2014 10:12, Tristan Marlow wrote:
Hi,

Just thought I would share my notes on my Rave 11 success with Delphi
XE6. This was the final piece of the puzzle to get our application
migrated to XE6 and I am glad Nevrona have release new versions.

Overall it has been good, I have only had a few tweaks here and there.
Below are a few issue I have resolved that may help others.

1.) RAVE settings location (INI File)
2.) Report Events cause Access Violation when
RaveProject.GetParam('FooterImage') <> '' in use.
3.) LargeInt Invalid Typecast
4.) JPEG Support



1.) Settings location. I wanted to move my RAVE installation. The
settings INI file is located in D:\Users{username}\Documents\Rave110.ini

This contains references to the Packages you will need to change. I have
also found that if you disable a packet it does not work so removing
from here is best.

[Packages]
Rave Graphics Components=C:\Program Files
(x86)\Embarcadero\Studio\14.0\source\Rave11RvGraphics110.bpl


2.) Access Violation for Param TRUE/ FALSE checks

This appears to be an issue with Boolean checks in Report OnBeforePrint
event.

Debugger Exception Notification

Project raised exception class $C0000005 with message 'access violation
at 0x00bfaf76: read of address 0x00000000'.

eg

This will error

if RaveProject.GetParam('FooterImage') <> '' then
BitmapFooter.FileLink := RaveProject.GetParam('FooterImage');
BitmapFooter.Visible := True;
else
BitmapFooter.Visible := False;
end if;

this will work

Value := RaveProject.GetParam('FooterImage');
if Value <> '' then
BitmapFooter.FileLink := Value;
BitmapFooter.Visible := True;
else
BitmapFooter.Visible := False;
end if;


3.) LargeInt Invalid Typecast

RpConDS.pas

LargeInt - Invalid Typecast

DoGetRow

dtInt64:
begin
// WriteInt64Data(DisplayText, (Fields[I1] as
TLargeIntField)
// .AsLargeInt);
WriteInt64Data(DisplayText,AsLargeInt); // Tristan


4.) JPEG support for standard RaveGraphic (Bitmap Component)

I have been unable to get the JPEG addon to appear in the component list
of Rave Reports.
http://rave-notes.blogspot.com.au/2010/01/jpeg-addon-for-rave-77-and-delphi-2010.html

I have found the work around to edit RvCSStd.pas

procedure TRaveGraphicImage.LoadFromStream(Stream: TStream);
var
WicImage: TWICImage;
begin { LoadFromStream }
UnloadAltImage;
FAltImage := CreateGraphic;

// Use new TWICImage to convert images.
WicImage := TWICImage.Create;
try
WicImage.LoadFromStream(Stream);
FAltImage.Assign(WicImage);
finally
FreeAndNil(WicImage);
end;

// FAltImage.LoadFromStream(Stream);

if not ImageValid then
begin { Invalid image format }
UnloadAltImage;
end; { if }
end; { LoadFromStream }

Tristan Marlow

Posts: 8
Registered: 7/17/08
Re: Rave11 Developer Edition / Delphi XE6 / ZeosDBO / MySQL - Some Tweaks
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 12, 2014 10:30 AM   in response to: Kris Golko in response to: Kris Golko
Hi Kris, Rave 11 Developer includes source.
http://www.nevrona.com/order/index.html


On 12/07/2014 4:26 PM, Kris Golko wrote:

Does it include the source code?

On 11/06/2014 10:12, Tristan Marlow wrote:
Hi,

Just thought I would share my notes on my Rave 11 success with Delphi
XE6. This was the final piece of the puzzle to get our application
migrated to XE6 and I am glad Nevrona have release new versions.

Overall it has been good, I have only had a few tweaks here and there.
Below are a few issue I have resolved that may help others.

1.) RAVE settings location (INI File)
2.) Report Events cause Access Violation when
RaveProject.GetParam('FooterImage') <> '' in use.
3.) LargeInt Invalid Typecast
4.) JPEG Support



1.) Settings location. I wanted to move my RAVE installation. The
settings INI file is located in D:\Users{username}\Documents\Rave110.ini

This contains references to the Packages you will need to change. I have
also found that if you disable a packet it does not work so removing
from here is best.

[Packages]
Rave Graphics Components=C:\Program Files
(x86)\Embarcadero\Studio\14.0\source\Rave11RvGraphics110.bpl


2.) Access Violation for Param TRUE/ FALSE checks

This appears to be an issue with Boolean checks in Report OnBeforePrint
event.

Debugger Exception Notification

Project raised exception class $C0000005 with message 'access violation
at 0x00bfaf76: read of address 0x00000000'.

eg

This will error

if RaveProject.GetParam('FooterImage') <> '' then
BitmapFooter.FileLink := RaveProject.GetParam('FooterImage');
BitmapFooter.Visible := True;
else
BitmapFooter.Visible := False;
end if;

this will work

Value := RaveProject.GetParam('FooterImage');
if Value <> '' then
BitmapFooter.FileLink := Value;
BitmapFooter.Visible := True;
else
BitmapFooter.Visible := False;
end if;


3.) LargeInt Invalid Typecast

RpConDS.pas

LargeInt - Invalid Typecast

DoGetRow

dtInt64:
begin
// WriteInt64Data(DisplayText, (Fields[I1] as
TLargeIntField)
// .AsLargeInt);
WriteInt64Data(DisplayText,AsLargeInt); // Tristan


4.) JPEG support for standard RaveGraphic (Bitmap Component)

I have been unable to get the JPEG addon to appear in the component list
of Rave Reports.
http://rave-notes.blogspot.com.au/2010/01/jpeg-addon-for-rave-77-and-delphi-2010.html

I have found the work around to edit RvCSStd.pas

procedure TRaveGraphicImage.LoadFromStream(Stream: TStream);
var
WicImage: TWICImage;
begin { LoadFromStream }
UnloadAltImage;
FAltImage := CreateGraphic;

// Use new TWICImage to convert images.
WicImage := TWICImage.Create;
try
WicImage.LoadFromStream(Stream);
FAltImage.Assign(WicImage);
finally
FreeAndNil(WicImage);
end;

// FAltImage.LoadFromStream(Stream);

if not ImageValid then
begin { Invalid image format }
UnloadAltImage;
end; { if }
end; { LoadFromStream }

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02