RTFPaperHeight Example for C++ 5.0 and later
/* This example loads a RTF file, with a custom top margin, bottom margin, left margin, right margin, Paper width, and Paper height */
void CDemoView::OnLoadRtf()
{
ILEADRasterIO *m_pRasterIO = NULL;
CoCreateInstance(
CLSID_LEADRasterIO,
NULL,
CLSCTX_ALL,
IID_ILEADRasterIO,
(void**)&m_pRasterIO
);
m_pRasterIO->RTFTopMarg = 0.9;
m_pRasterIO->RTFBottomMarg= 0.9;
m_pRasterIO->RTFLeftMarg= 1.3;
m_pRasterIO->RTFRightMarg= 1.3;
m_pRasterIO->RTFPaperWidth= 8.25;
m_pRasterIO->RTFPaperHeight= 11.5;
/* Now load the RTF file */
m_pRasterIO->Load(m_LeadRasterView.GetRaster(), "c:\\image1.rtf", 0, 1, 1 );
m_pRasterIO->Release();
}