#1 2014-04-16 19:12:40

edismo
Member
From: Brazil
Registered: 2013-10-04
Posts: 34

Report with only one page

Hi,

I use TGDIPages.NewPageLayout to define width and Height, but i need report with only one page, independent of Height.
It´s possibile?

Offline

#2 2014-04-17 08:59:02

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,182
Website

Re: Report with only one page

I never used the class like that...

If you set a very high height value, you may be able to simulate this...

But it is not supported not even tested yet...

Offline

#3 2014-04-17 11:45:27

edismo
Member
From: Brazil
Registered: 2013-10-04
Posts: 34

Re: Report with only one page

Hi

I need print in mini printer of continuos paper.

I set height max 9469 (NewPageLayout(80,9469)), greater than that 9469 occurs error Out of system resources. But it does not solve why if the report has a few printed lines will print blank paper.

I tried to calculate previously the lines of the report but not very accurate, the report also has pictures.

I also tried to change the margins to remove the space between the pages, but did not work as expected.

That should work or is wrong?

    PageMargins := Rect(0,0,0,0);
    Top := 0;
    LeftMargin := 0;
    BeginDoc;

Can you help me with some alternative?

Thanks Ab.

Last edited by edismo (2014-04-17 11:46:07)

Offline

Board footer

Powered by FluxBB