Setting EndlessHeight

When I am printing on paper, I want EndlessHeight = false

But when I export to JPG, I want EndlessHeight = true

I've been trying to get this to work all night, I'm trying to convert Delphi examples.

In the manual I found this

TfrxReportPage * Page;

// first report page has index [1] : index [0] is the Data page

Page = (TfrxReportPage *)frxReport1.Pages[1];

// change size
Page->PaperSize = DMPAPER_A2;
// change paper orientation
Page->Orientation = poLandscape;

Which doesn't even compile, "cannot convert TfrxReportPage to TfrxReportPage *"

So I tried to convert that code to code that would actually compile

TfrxReportPage *Page; // First report page has index [1] : index [0] is the Data page

// The following line of code throws an exception, List index out of bounds (-1)
Page = new TfrxReportPage(Report3->FindObject(Report3->Pages[1]->Name));

// Never gets this far, already crashed
Page->EndlessHeight = false;

Please let me know what I am doing wrong. Thanks!

Comments

  • gpigpi
    edited 7:43PM
    Send your report template (fr3) to support@fast-report.com

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.