Free Support Forum - aspose.com

Watermark text display problem

Hi,

i used the below code to get a water mark text into a word document

but nothing(water mark text) is displayed in the document

Anybody can suggest what could be done

Dim doc As Document = New Document

Dim builder As DocumentBuilder = New DocumentBuilder(doc)

Dim shape As Aspose.Words.Drawing.Shape = New Aspose.Words.Drawing.Shape(doc, Aspose.Words.Drawing.ShapeType.TextSlantUp)

shape.TextPath.Size = 100

shape.TextPath.Text = "DRAFT IGATE"

shape.TextPath.Bold = True

shape.WrapType = Aspose.Words.Drawing.WrapType.None

shape.BehindText = True

shape.RelativeHorizontalPosition = Aspose.Words.Drawing.RelativeHorizontalPosition.Page

shape.HorizontalAlignment = Aspose.Words.Drawing.HorizontalAlignment.Center

shape.RelativeVerticalPosition = Aspose.Words.Drawing.RelativeVerticalPosition.Page

shape.VerticalAlignment = Aspose.Words.Drawing.VerticalAlignment.Center

builder.MoveToHeaderFooter(HeaderFooterType.HeaderPrimary)

builder.InsertNode(shape)

doc.Save("DRAFT.doc", 1, SaveType.OpenInWord, Response)

Hi,

Thank u very much,it is working now

and one more question, whenever i call the license document for the second time it throw some errors, i dont know the way to avoid call on the second time since it is needed, any suggestion for this

Thanks

Durai

hi,

thanks a lot

now it is working fine

RPD