cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Reports 2020 Java - Exception - Page Area Too Large - Error code:-2147467259

diegofava
Explorer
0 Kudos
446

Hi,

I get this error when trying to export an rpt file that has a subreport containing an image inside.

I verified that the subreport height is bigger than the report height, so I think this should be the problem.

But what can I do to solve the issue? I've already tried to set the subreport dimension lower than the report ones, in this way:

int reportWidth = ((ReportClientDocument)report).getPrintOutputController().getPrintOptions().getContentWidth();
int reportHeight = ((ReportClientDocument)report).getPrintOutputController().getPrintOptions().getContentHeight(); 
subreport.setWidth(reportWidth * 0.8);
subreport.setHeight(reportHeight * 0.8);

But with no success.

Below the exception stack:

<strong>[2023-02-09 14:16:59.689] [Thread-4] ERROR Area della pagina
troppo grande<br></strong><strong>com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Area della
pagina troppo grande---- Error code:-2147467259 Error code name:failed<br></strong><strong>      at
com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(SourceFile:238)<br></strong><strong>      at
com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:206)<br></strong><strong>      at
com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:184)<br></strong><strong>      at
com.thera.thermfw.cr.ElaboratePrint.export(ElaboratePrint.java:1147)<br></strong><strong>      at
com.thera.thermfw.cr.ElaboratePrint.run(ElaboratePrint.java:294)<br></strong><strong>      at
com.thera.thermfw.cr.PrintCommand.execute(PrintCommand.java:110)<br></strong><strong>      at
com.thera.thermfw.cr.CommandExecutor.run(CommandExecutor.java:94)<br></strong><strong>      at
com.thera.thermfw.cr.CrystalServer$SocketHandler.run(CrystalServer.java:47)<br></strong><strong>      at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)<br></strong><strong>      at
java.util.concurrent.FutureTask.run(FutureTask.java:266)<br></strong><strong>      at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)<br></strong><strong>      at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)</strong>

Any help will be appreciated.

Thanks,

Enrico

Accepted Solutions (0)

Answers (1)

Answers (1)

yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos

diegofava

This error occurs when the page size set for the report exceeds the maximum size of the printer. The maximum printer size is normally A4 or Letter-size. To fix this issue, open the report in Crystal Reports and select the Page Setup option from the File menu. Change the Page size to A4 or Letter. If the report is not displayed correctly after making this change, you may need to resize the report elements to fit the new page size.