FormattedTextArea InDent

FormattedTextArea InDent

Forum member · Sep 11, 2006
When using the FormattedtextArea class, I use the <p> paragraph format options, of which one is the "InDent" property. I specify it for the first paragraph as in: "<p Align='justify' Indent=15>Please take some time to read this.</p>", where it works fine, but for all subsequent paragraphs it does not work, so if I add another paragraph like: "<p Align='justify' Indent=15>Your home is too valuable." it does not indent at all.

Re: FormattedTextArea InDent

Support · Oct 2, 2006
Hello, This issue is resolved in v4.0.1 which was released today. Thanks, ceTe Software Support Team

Re: FormattedTextArea InDent

Forum member · Aug 29, 2008
Bug seems to be back in version 5.01 :( Johnny

Re: FormattedTextArea InDent

Support · Aug 29, 2008
Hello Johnny, We are able to add indent to all the <p> tags without any problem. Please make sure that you are using the latest build of our product. Following is the sample code we used for this. Document document = new Document(); Page page = new Page(); string strHtmlText = "<p Align='justify' Indent=20>Please take some time to read this.</p><p Align='justify' Indent=20>Please take some time to read this.</p><p Align='justify' Indent=20>Please take some time to read this.</p>"; FormattedTextAreaStyle style = new FormattedTextAreaStyle(FontFamily.Helvetica, 12, true); FormattedTextArea area = new FormattedTextArea(strHtmlText, 10, 10, 215, 200, style); page.Elements.Add(new Rectangle(area.X, area.Y, area.Width, area.Height)); page.Elements.Add(area); document.Pages.Add(page); document.DrawToWeb(); If you are having problem with the latest build also then please send over a sample code which can recreate this behavior to our [^a|mailto:support@cete.com|Support Team^] so that they can look into it. Thanks, ceTe Software Support Team.

Re: FormattedTextArea InDent

Forum member · Aug 29, 2008
sorry I wasn't clear it is a indent/leftindent problem Document document = new Document(); Page page = new Page(); string strHtmlText = "<p Indent='-10' LeftIndent='10'><b>&nbsp;1.&nbsp;</b>sometext not very long but still wrapping around </p><br><p Indent='-10' LeftIndent='10'><b>&nbsp;2.&nbsp;</b>sometext not very long but still wrapping around </p><br>"; FormattedTextAreaStyle style = new FormattedTextAreaStyle(FontFamily.Helvetica, 12, true); FormattedTextArea area = new FormattedTextArea(strHtmlText, 10, 10, 115, 200, style); page.Elements.Add(new Rectangle(area.X, area.Y, area.Width, area.Height)); page.Elements.Add(area); document.Pages.Add(page); document.DrawToWeb();

Re: FormattedTextArea InDent

Support · Aug 29, 2008
Hello, We are not able to recreate the behavior on our end using v5.0 of the product. The LeftIndent attribute of the <p> tags works as expected. Please send an email to our [^a|mailto:support@cete.com|Support Team^] so that they can send you the output PDF document. Thanks, ceTe Software Support Team

Re: FormattedTextArea InDent

Forum member · Aug 29, 2008
sent