clacke
2007-02-16 08:17:53 UTC
Sorry for crosspost from thirdpartytool.general but there was asked for a
rave report replacement.
Because I received a support message (thanks Thomas Pfister!), I put here
hoping it's useful to all users of this newsgroup.
Problem:
Need to produce a pdf report with Rave 6.5.2 in BDS 2006 within an Intraweb
8.0.23 .NET aspx/assembly application.
Following tips on Nevrona Design site (working in Intraweb x win32
applications), Rave shows setup form ON THE SERVER SIDE (yes, I setted
RvSystem.SystemSetups := tmpRvs.SystemSetups - [ssAllowSetup];) so browser
client seems hang up.
Next, when intraweb application calls RvProject.ExecuteReport('myReport');
it obtains a "Object reference not set to an instance of an object".
To reproduce this problem you can create a new Intraweb application for
.Net, add a TRvProject, a TRvSystem, create a new rav file from within Rave
and invoke it. If you don't want put visual components on the forms, you can
write as follows:
procedure TIWUserSession.CreatePDF(FileName: string);
var
tmpRvp: TRvProject;
tmpRvs: TRvSystem;
tmpRPdf: TRvRenderPDF;
begin
try
tmpRvp := TRvProject.Create(Self);
tmpRvs := TRvSystem.Create(Self);
tmpRPdf := TRvRenderPDF.Create(Self);
tmpRvp.Engine := tmpRvs;
tmpRvp.ProjectFile := WebApplication.ApplicationPath +
'\project1.rav';
tmpRvs.DefaultDest := rdFile;
tmpRvs.DoNativeOutput := false;
tmpRvs.RenderObject := tmpRPdf;
tmpRvs.OutputFileName := FileName;
tmpRvs.SystemSetups := tmpRvs.SystemSetups - [ssAllowSetup];
tmpRvs.SystemOptions := [];
tmpRvp.Open;
tmpRvp.ExecuteReport('Report2');
tmpRvp.Close;
finally
tmpRvp.Free;
tmpRvs.Free;
tmpRPdf.Free;
end;
Any suggestion or help will be greately appreciated.
Thanks in advance.
clacke
rave report replacement.
Because I received a support message (thanks Thomas Pfister!), I put here
hoping it's useful to all users of this newsgroup.
Problem:
Need to produce a pdf report with Rave 6.5.2 in BDS 2006 within an Intraweb
8.0.23 .NET aspx/assembly application.
Following tips on Nevrona Design site (working in Intraweb x win32
applications), Rave shows setup form ON THE SERVER SIDE (yes, I setted
RvSystem.SystemSetups := tmpRvs.SystemSetups - [ssAllowSetup];) so browser
client seems hang up.
Next, when intraweb application calls RvProject.ExecuteReport('myReport');
it obtains a "Object reference not set to an instance of an object".
To reproduce this problem you can create a new Intraweb application for
.Net, add a TRvProject, a TRvSystem, create a new rav file from within Rave
and invoke it. If you don't want put visual components on the forms, you can
write as follows:
procedure TIWUserSession.CreatePDF(FileName: string);
var
tmpRvp: TRvProject;
tmpRvs: TRvSystem;
tmpRPdf: TRvRenderPDF;
begin
try
tmpRvp := TRvProject.Create(Self);
tmpRvs := TRvSystem.Create(Self);
tmpRPdf := TRvRenderPDF.Create(Self);
tmpRvp.Engine := tmpRvs;
tmpRvp.ProjectFile := WebApplication.ApplicationPath +
'\project1.rav';
tmpRvs.DefaultDest := rdFile;
tmpRvs.DoNativeOutput := false;
tmpRvs.RenderObject := tmpRPdf;
tmpRvs.OutputFileName := FileName;
tmpRvs.SystemSetups := tmpRvs.SystemSetups - [ssAllowSetup];
tmpRvs.SystemOptions := [];
tmpRvp.Open;
tmpRvp.ExecuteReport('Report2');
tmpRvp.Close;
finally
tmpRvp.Free;
tmpRvs.Free;
tmpRPdf.Free;
end;
Any suggestion or help will be greately appreciated.
Thanks in advance.
clacke