Hi ,
I want to set diff margin to each page.
set for page 1 leftmargin is 1.25’’ and rightmargin 0’‘
for page 2 leftmargin is 1.25’’ and rightmargin is 1.25’’
I have tried following code it is not working
I downloaded latest Aspose.Words for .Net i.e. 13.1
Dim doc As New Document("D:\DocumentBuilderDemo.doc")
Dim builder As New DocumentBuilder(doc)
builder.PageSetup.ClearFormatting()
builder.PageSetup.PaperSize = PaperSize.A4
builder.PageSetup.LeftMargin = (1.25 * 72)
builder.PageSetup.RightMargin = 0.1
builder.Writeln("sklfhsoafhsulahfuilasduiwatujlbvisgusghui hugysughoheroyio hfuowytuiyhqgoih yfuiweyfuiwqhjoqwhwoheg oqwhg89wyg89 q9h 9uy9wgh ho ofhy9w8yguio ghwo uiyuihg iohgo sklfhsoafhsulahfuilasduiwatujlbvisgusghui hugysughoheroyio hfuowytuiyhqgoih yfuiweyfuiwqhjoqwhwoheg oqwhg89wyg89 q9h 9uy9wgh ho ofhy9w8yguio ghwo uiyuihg iohgo")
doc.MailMerge.DeleteFields()
builder.MoveToDocumentEnd()
builder.InsertBreak(BreakType.PageBreak)
builder.PageSetup.ClearFormatting()
builder.PageSetup.PaperSize = PaperSize.A4
builder.PageSetup.LeftMargin = (1.25 * 72)
builder.PageSetup.RightMargin = (1.25 * 72)
builder.Writeln("sklfhsoafhsulahfuilasduiwatujlbvisgusghui hugysughoheroyio hfuowytuiyhqgoih yfuiweyfuiwqhjoqwhwoheg oqwhg89wyg89 q9h 9uy9wgh ho ofhy9w8yguio ghwo uiyuihg iohgo sklfhsoafhsulahfuilasduiwatujlbvisgusghui hugysughoheroyio hfuowytuiyhqgoih yfuiweyfuiwqhjoqwhwoheg oqwhg89wyg89 q9h 9uy9wgh ho ofhy9w8yguio ghwo uiyuihg iohgo")
doc.Save("D:\abc.doc", SaveFormat.Doc)