I have downloaded latest evaluation Aspose.Words .Net i.e. 13.1
I wan to create one cover-page document (See Attachment)
In that one background image is fixed as it in attached document , and company log is also fixed
other Title ,Text ,Company name ,Date gets changed each time.
below that more pages will get added according to as data is present.
for cover page (First page) LeftMargin is 1.25’’ and RightMargin is 0’‘
and rest of all the pages Left and Right Margin is 1.25’'
I am using Vb.net please help me to get it done
and also tell me how to create cover page using MSWord 2007
if cover page problematically possible then it is well N good
output doc file should be in 97-2003 format.
Dim builder As New DocumentBuilder(doc)
Dim shape As Shape = builder.InsertImage("C:\Temp\Aspose Logo.png")
shape.WrapType = WrapType.None
shape.BehindText = True
shape.RelativeHorizontalPosition = RelativeHorizontalPosition.Page
shape.HorizontalAlignment = Aspose.Words.Drawing.HorizontalAlignment.Center
shape.RelativeVerticalPosition = RelativeVerticalPosition.Page
shape.VerticalAlignment = VerticalAlignment.Center
Dim textBox As New Shape(doc, ShapeType.TextBox)
textBox.WrapType = WrapType.None
textBox.HorizontalAlignment = Aspose.Words.Drawing.HorizontalAlignment.Center
textBox.VerticalAlignment = VerticalAlignment.Top
textBox.Height = 50
textBox.Width = 200
textBox.ZOrder = 2
Dim para As Paragraph = textBox.FirstParagraph
para.ParagraphFormat.Alignment = ParagraphAlignment.Center
Dim run As New Run(doc)
run.Text = "Content in textbox"
Dim firstPageSetup As PageSetup = doc.FirstSection.PageSetup
Dim otherPagesSetup As PageSetup = doc.LastSection.PageSetup
firstPageSetup.LeftMargin = ConvertUtil.InchToPoint(1.25)
firstPageSetup.RightMargin = 0
otherPagesSetup.LeftMargin = ConvertUtil.InchToPoint(1.25)
otherPagesSetup.RightMargin = ConvertUtil.InchToPoint(1.25)
Hi Awais ,
Thanks that solved my problem.