Free Support Forum -

Tooltip for hyperlink

Dear experts,

I am using aspose word api to insert values in my word template. Methods are written in Java. Kindly let me know if I can insert Tooltip for my hyperlink.

code that I have used is following:

String url = generateDRL(dfSession, rObjectId);
// Insert the link.
builder.insertHyperlink(“Click here to see attachement :” + rObjectName, url, false);
// Revert to default formatting.

Thanks & Regards
Vikas Gupta


Thanks for your request. You can use code like the following to insert a hyperlink with tool-tip:



builder.insertField("HYPERLINK \"\" \\o \"This is a tooltip\"", "Aspsoe web site");


Hope this helps.

Best regards,


Thanks for your response. I can see tooltip “” but this is actual link that is used in Hyperlink.

Please let me know how I can add a message as my tooltip. Message should be in red and bold.

Thanks for your quick response.

Vikas Gupta


One more thing I missed to explain that I am saving document as PDF.

Thanks & Regards
Vikas Gupta

Hi Vikas,

Thanks for your inquiry.

I have tested the code posted by Alexey and the link in the generated document has a tooltip as expected. Are you able to see this tooltip when you open the document in MS Word?

Also please note that you cannot format a tooltip and that it appears that such tooltips do not appear in output PDF when viewing in Adobe Acrobat