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!
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