We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Drop cap

Hi, is it possible to remove a drop cap from a document?

I have try the code below but it is not working.

For Each para As Aspose.Words.Paragraph In doc.GetChildNodes(NodeType.Paragraph, True)

If para.ParagraphFormat.DropCapPosition <> DropCapPosition.None Then

para.ParagraphFormat.DropCapPosition = DropCapPosition.None

Next para

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Κανονικός πίνακας"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}


Hi Pavlos,

Thanks for your inquiry. You can use the following code snippet to remove the Drop Cap. However, Aspose.Words does not set DropCapPosition to DropCapPosition.None. I have logged this issue as WORDSNET-8657 in our issue tracking system. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.

Document doc = new Document(MyDir + "in.docx");

foreach (Paragraph para in doc.FirstSection.Body.Paragraphs)


if (para.ParagraphFormat.DropCapPosition != DropCapPosition.None)



doc.Save(MyDir + "Out.docx");

The issues you have found earlier (filed as WORDSNET-8657) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.