Free Support Forum - aspose.com

Inserting Hyper Link

Hi, If i insert hyperlink Eg: "For Any Quires Click Here" in this i need only Here to be hyperlink but if i use "builder.InsertHyperlink", the "here" becomes hyperlink but it in next line.

Out put is like this:

For any Quires Click

Here

I need this in one line as " For any Quires Click Here "

How to do it?

Regards

Dowjones Team.

Have you tried the following sequence?

builder.Write("For any Quires Click ");

// Specify font formatting for the hyperlink.

builder.Font.Color = System.Drawing.Color.Blue;

builder.Font.Underline = Underline.Single;

// Insert the hyperlink.

builder.InsertHyperlink("Here", "www.aspose.com", false);

// Clear hyperlink formatting.

builder.Font.ClearFormatting();

Hi,

we followed the same it is working fine.

Thanks & regards

DowJones Team