Hello,
Could you please let me know if there is any way to include hyperlinks in reports generated using linq.
I am using Aspose Word Java 15.8.0.
Hello,
Hi Puneet,
Hi Awais Hafeez,
Hi Puneet,
Hi Awais,
Hi Puneet,
public static class LinkInfo
{
public String Alias;
public String Link;
}
- In the MS Word editor, add text “<<[Alias]>>”
- Select the text and make it a hyperlink using some dummy url like “abc”
- Select the hyperlink and press Shift+F9
- Replace “abc” with “<<[Link]>>”
- Select the hyperlink and press Shift+F9
Document doc = new Document(getMyDir() + “input.docx”);LinkInfo lnk = new LinkInfo();
lnk.Alias = “Aspose”;
lnk.Link = “http://www.aspose.com”;ReportingEngine engine = new ReportingEngine();
engine.buildReport(doc, lnk);doc.save(getMyDir() + “awjava.docx”);