Skip to Content
Former Member
Sep 21, 2006 at 05:51 PM

Text in text box is clipped when font is bold


<p class="ssiBODYCOPY">Hi,<br /><br />I am adding a text box object in a subreport at run time (code below). If I set the font to Bold, the text is clipped. Is there something I am doing wrong or is a bug in Crystal? I am using Crystal Reports XI.<br /><br />//subreportHeaderSection defined earlier as ISectionPtr</p><p class="ssiBODYCOPY">ITextObjectPtr txtBox = subreportHeaderSection->AddTextObject(_bstr_t("uiSpacing1234567890"), 0, 0);<br />CComQIPtr<IFont,&IID_IFont> pFont(txtBox->GetFont());<br />pFont->put_Bold(TRUE);<br /><br />Thanks.<br /></p>