i want to apply the break-word style in MigraDoc.Rendering.Document.RenderObject function
below mentioned in my code
docRenderer.RenderObject(gfx,0,0, 100, paragraph); i want to apply word-wrap: break-word like css style?
If there, please help me to come out from this problem.
Thank you in advance.
my code is
Code:
Document doc = new Document();
Section sec = doc.AddSection();
//// Add a single paragraph with some text and format information.
Paragraph paragraph = doc.LastSection.AddParagraph();
MigraDoc.DocumentObjectModel.Font fntStyle = new MigraDoc.DocumentObjectModel.Font();
fntStyle.Bold = true;
fntStyle.Name = "Arial"
paragraph.AddFormattedText("sample text", fntStyle);
MigraDoc.Rendering.DocumentRenderer docRenderer = new DocumentRenderer(doc);
docRenderer.PrepareDocument();
docRenderer.RenderObject(gfx,0,0, 100, paragraph);
_________________
Shaik Nasurudeen Sr. Software Engineer, NCS SoftSolutions (P) Ltd.
+ 91 (44) 2473 5415 - 17
nasurudeen@ncssoft.inNo. 70, IInd Floor, Arya Gowda Road, West Mambalam, Chennai, TamilNadu, India - 600033