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 not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 4 - Last Post: Oct 16, 2014 7:30 AM Last Post By: Ian Barker
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 9:46 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

Mike Hickman

Posts: 31
Registered: 4/29/05
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 15, 2014 10:07 PM   in response to: Jitendra Gouda in response to: Jitendra Gouda
Hi,

Suggest you install latest version (11.0.8 ( released a few days ago.))

Several issues fixed.

I am rendering PDF reports fine with Ver 11.0.7
I downloaded and installed 11.0.8 this morning
( I forgot to uninstall, so had initial problems so uninstall 11.0.3
first :) )

Mike
_______________________________
On 16.10.2014 2:46 PM, Jitendra Gouda wrote:
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

Jitendra Gouda

Posts: 11
Registered: 3/2/13
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 15, 2014 10:53 PM   in response to: Mike Hickman in response to: Mike Hickman
Hi Mike,

Thanks for your reply,

I am rendering PDF reports fine with Ver 11.0.7

Have you tried with large reports having pages more than 3000 or 4000 ?
Because I am also able to render PDF report for small reports having page 2000 with out any problem.
But "Out of memory" exception occurs only when pages are more than 3000 or 4000.

So could you please let me know your thoughts?

Thanks,
Mike Hickman

Posts: 31
Registered: 4/29/05
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 16, 2014 12:45 AM   in response to: Jitendra Gouda in response to: Jitendra Gouda
No my Reports are small in comparison.

Can you break the Reports into chunks( batch's ) then chain them
releasing each report before calling the next.

Also, can you decrease the image quality/ DPI.
Have you tried to Compress and decompress ?
I can't help but I note their are properties and events

If this doesn't work I would contact Nevrona support.

Mike

___________

On 16.10.2014 3:53 PM, Jitendra Gouda wrote:
Hi Mike,

Thanks for your reply,

I am rendering PDF reports fine with Ver 11.0.7

Have you tried with large reports having pages more than 3000 or 4000 ?
Because I am also able to render PDF report for small reports having page 2000 with out any problem.
But "Out of memory" exception occurs only when pages are more than 3000 or 4000.

So could you please let me know your thoughts?

Thanks,
Ian Barker

Posts: 98
Registered: 5/18/07
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 16, 2014 7:30 AM   in response to: Jitendra Gouda in response to: Jitendra Gouda
Jitendra Gouda wrote:

Hi Mike,

Thanks for your reply,

I am rendering PDF reports fine with Ver 11.0.7

*Have you tried with large reports having pages more than 3000 or
4000 ?* Because I am also able to render PDF report for small reports
having page 2000 with out any problem. But "Out of memory" exception
occurs only when pages are more than 3000 or 4000.

So could you please let me know your thoughts?

Thanks,

THREE THOUSAND PAGES - holy crap!

That's got to be a struggle for pretty much anything to generate isn't
it? Surely there's got to be a better way than producing 3000 - 4000
pages?

Are you able to split it down in any way at all - 3 to 4000 pages seems
to be a real antipattern and personally I'd not be surprised at myself
for getting out of memory errors. :)

Good luck with this, really.

--
IanB.
http://about.me/IanBarker
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02