ParagraphFormat Issue

Hi Team,
I am facing issue in paragraph formatting.

In single paragraph I want some part of text as normal, some lines in between as bold and whole paragraph inside a box(border).
can you help me fulfil this requirement?

@kotharib2,

Please ZIP and attach your input Word document and your expected document showing the desired output here for testing. Please create expected document by using MS Word. We will investigate the structure of expected document and provide you code to achieve the same by using Aspose.Words.

Hi @awais.hafeez

Problem for Paragraph is resolved.

I need one help is
I want to insert A4 size image on first page of docx…can you help to achieve that.

Thanks for your reply

@kotharib2,

Please try using the following code. Hope, this helps.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

builder.MoveToDocumentStart();

Shape img = builder.InsertImage("D:\\temp\\aspose.words.jpg");
img.AspectRatioLocked = false;
img.RelativeHorizontalPosition = RelativeHorizontalPosition.Page;
img.RelativeVerticalPosition = RelativeVerticalPosition.Page;
img.WrapType = WrapType.None;

img.Width = 8.27 * 72;
img.Height = 11.69 * 72;
img.Left = 0;
img.Top = 0;            

doc.Save("D:\\temp\\18.9.docx");