HTML Bağlantı Hedefi Türünü değiştirin

HTML Bağlantı Hedefi Türünü değiştirin

Aşağıdaki kod kullanımını göstermektedirHtmlSaveOptions.setLinkTargetType() Emlak. Bağlantı hedefi türünü şu şekilde değiştirir:boşluk. Varsayılan olarak,ebeveyn . alabilirsinkaynak excel dosyası ancak bu bağlantıdan, bu kodu çalıştırmak için içinde HTML hiper bağlantısı bulunan herhangi bir excel dosyasını kullanabilirsiniz.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java
// The path to the documents directory.
String dataDir = Utils.getDataDir(ChangeHTMLLinkTargetType.class);
Workbook workbook = new Workbook(dataDir + "source.xlsx");
HtmlSaveOptions opts = new HtmlSaveOptions();
opts.setLinkTargetType(HtmlLinkTargetType.SELF);
workbook.save(dataDir + "out.html", opts);