Watch, Follow, &
Connect with Us

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


Welcome, Guest
Guest Settings
Help

Thread: "Out OF Memory" exception occurs when PDF report generates using RaveReport


This question is answered.


Permlink Replies: 2 - Last Post: Oct 22, 2014 3:05 AM Last Post By: terry way
Jitendra Gouda

Posts: 11
Registered: 3/2/13
"Out OF Memory" exception occurs when PDF report generates using RaveReport  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 15, 2014 10:13 PM
Hi,

I have one issue with Rave Report when we generate PDF report.

We are using Rave report for reporting in our project. We are also generating PDF report using Rave report.
We use Rave components like TRvSystem, TRvRenderPDF to generate PDF report.
Report preview is working fine. But when I generate PDF report for a large report having page more than 2500, then "Out of memory" exception occurs. But for smaller reports it generates PDF files properly.

We are using Delphi XE3, Ravereport Developer Edition 11.0.3.

My codes are as bellow...

procedure TGblWareRptThread.PDFRepoprt(fReportSystem1: TRvSystem);
var
RenderPDF11: TRvRenderPDF;
begin
try

fReportSystem1.DefaultDest := rdFile;
fReportSystem1.DoNativeOutput := False;
RenderPDF11 := TRvRenderPDF.Create(Nil);
fReportSystem1.RenderObject := RenderPDF11;
fReportSystem1.OutputFileName := sFileName;
fReportSystem1.SystemSetups := fReportSystem1.SystemSetups - [ssAllowSetup];
fReportSystem1.Execute;

finally
fReportSystem1.OutputFileName := '';
FreeAndNil(RenderPDF11);
end;

end;

So could anybody, please suggest what's wrong I am doing ?

Thanks,

--
MR JKG

terry way

Posts: 2
Registered: 3/2/02
Re: "Out OF Memory" exception occurs when PDF report generates using RaveReport  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 22, 2014 3:00 AM   in response to: Jitendra Gouda in response to: Jitendra Gouda
hiin rvsystems change the stearm mode to smfile
terry way

Posts: 2
Registered: 3/2/02
Re: "Out OF Memory" exception occurs when PDF report generates using RaveReport
Correct
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 22, 2014 3:05 AM   in response to: Jitendra Gouda in response to: Jitendra Gouda
Hi, In the TRVsystems component change the stream methotd to smfile
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02