Mega Search
23.2 Million


Sign Up

Make a donation  
"Out OF Memory" exception occurs when PDF report generates u  
News Group: embarcadero.public.delphi.reporting-charting

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

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 15-Oct-2014, at 9:46 PM EST
From: Jitendra Gouda
 
Re: "Out OF Memory" exception occurs when PDF report generat  
News Group: embarcadero.public.delphi.reporting-charting
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

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 16-Oct-2014, at 7:30 AM EST
From: Ian Barker
 
Re: "Out OF Memory" exception occurs when PDF report generat  
News Group: embarcadero.public.delphi.reporting-charting
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,
>

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 16-Oct-2014, at 12:45 AM EST
From: Mike Hickman
 
Re: "Out OF Memory" exception occurs when PDF report generat  
News Group: embarcadero.public.delphi.reporting-charting
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,

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 15-Oct-2014, at 10:53 PM EST
From: Jitendra Gouda
 
Re: "Out OF Memory" exception occurs when PDF report generat  
News Group: embarcadero.public.delphi.reporting-charting
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
>

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 15-Oct-2014, at 10:07 PM EST
From: Mike Hickman