RTFPaperHeight example for C++ Builder

/* This example loads a RTF file, with a custom top margin, bottom margin, left margin, right margin, Paper width, and Paper height */

void __fastcall TForm1::Button3Click(TObject *Sender)
{
   /* Change margin values */
   LEADImage1->RTFTopMarg= 0.9;
   LEADImage1->RTFBottomMarg= 0.9;
   LEADImage1->RTFLeftMarg= 1.3;
   LEADImage1->RTFRightMarg= 1.3;

   LEADImage1->RTFPaperWidth= 8.25;
   LEADImage1->RTFPaperHeight= 11.5;

   /* Now load the RTF file */
   LEADImage1->Load("c:\\image1.rtf", 0, 1, 1 );
}