Hi All -
Is there a way to set the “target” attribute of a hyperlink in Aspose.Cells, when converting a workbook to HTML?
I’ve created a workbook in Excel with several hyperlinks. When I do a “Save As” HTML in Excel, all of the links have their target attribute set to “_parent”. All the links work correctly.
If I save that same workbook as HTML using Aspose.Cells, though, this target attribute is not set. Because of this, when I click the link, only the top frame is redirected to the new page, not the entire page.
I looked through the API, but didn’t see anything that would help. Any guidance you could offer would be greatly appreciated. Thanks!
Sean
Hi,
I have logged your issue into our issue tracking system with an id: CELLSNET-25032. We will look into if we can support it.
Thank you.
Hi,
We are evaluating your case. We request you to kindly post your template file i.e. “Html file manually generated in MS Excel”, we need to check hyperlink’s attributes and evaluate the difference.
Thank you.
Sure - I created a workbook with a single link in cell A1, in the attached “AsposeTestWorkbook.xls” template. I then ran the following C# to save the workbook as HTML:
string infile = “c:\AsposeTest\AsposeTestWorkbook.xls”;
string outfile = “c:\AsposeTest\AsposeHTMLOutput\AsposeTestWorkbook_out.html”;
Workbook wb = new Workbook(infile);
wb.CalculateFormula(true);
wb.Save(outfile, SaveFormat.Html);
The link was written out as follows:
Aspose.CellsI then did a “Save as HTML” directly from Excel, and the link printed as follows:
Aspose.Cells
Note the addition of the “target” attribute. I’ve attached the template file, and output from both Aspose.Cells and Excel. Let me know if there is anything else I can do to help. Thanks!
Hi,
Thanks for providing us the template files.
Yes, we found the difference regarding target attribute in “<a…>” tag as you mentioned. We will look into it soon.
Thank you.
The issues you have found earlier (filed as 25032) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.