pdf keeps adding blank page in report

Hello, friends

I have and issue which I cant fix for prolonged time period. I have a report which prints results saved in temp table. The code which inserts entries in temp table is simple while select

statement.

while select inventQualityOrderLineResults where
					inventQualityOrderLineResults.QualityOrderId == ebGateEntry.InventQualityOrderId
				{
					if(inventQualityOrderLineResults)
                        {
							this.insertAcceptanceReportTmpDetails(inventQualityOrderLineResults);
                        }
    private void insertAcceptanceReportTmpDetails(InventQualityOrderLineResults _inventQualityOrderLineResults)
    {

        ebAcceptanceReportTempDetails.TestId = _inventQualityOrderLineResults.TestId;
        ebAcceptanceReportTempDetails.TestResultValueReal = _inventQualityOrderLineResults.TestResultValueReal;
        ebAcceptanceReportTempDetails.TestResultValueOutcome = _inventQualityOrderLineResults.TestResultValueOutcome;
 
         ebAcceptanceReportTempDetails.insert();
        
    }

The problem is that report in pdf format keeps printing additional blank white page even if no space is needed (screenshot attached).

The problem persists as long as I have this variable lenght table in my report. Have you experienced similar problems. What could be the solution? Would be nice if could help me.

Best regards,

Roberts

Little additional information. The additional blank page is added by default by report. Not exactly by pdf printing option.

Best regards,

Roberts

Most often than not, an extra page is appearing when one of the fields are out of the margins… take a closer look at the report width, body width, or any other section that may go out of page size. See what detail you can see on that extra page - header, footers, page num, and it will help

Hi,

No need to go deep into your coding here since its not at all related to your design(Although use Query instead of while loops of insert_recordset :slight_smile: )

Talking about Design what Page size your are all looking for?

If its A4 make sure all your Design(Header + Body + Footer) should fit in this section. Since you have table structure make sure you have row limit accordingly for since page.

Preferred method is using rectangle and put everything under it.This will help you in achieving right format.

I know this looks sounds very basic but this is how i fixed it in my machine…

Thanks for the suggestions guys. I added rectangle and put everything in it. From the screenshot you can see that the rectangle size is smaller than the A4 page size. However, as you can see from the second screeshot it keeps adding the new blank page anyway. Is there any way to fix report size on max one page?

Best regards,

Roberts

Why you have So much Empty space between Grid …Can you keep in 1 rectangle? Your second screen shot is not matching with 1st one…

From where Footer part is coming? I can see it in your design…

Somehow magically by reducing the body size even more (3 cm) got report on one page.