Free Support Forum - aspose.com

Bad Target property in hyperlink when rendering HTML

I have a VSDX file with a shape and a hyperlink in the shape.

When I save As HTML with Visio, the clic on the link opens in a new Tab.
When I save As HTML, with Aspose.Diagram V19.11.0.0, the same input file, the clic on the link opens in the same Tab. It should open in a new tab.

In the zip you have all the files with a DOCX file explaining how to reproduce it. (Explanation.docx)

Thank.

files.zip (204.3 KB)

@julien.mevel.isilog

Would you kindly share the code snippet that you are using to convert .vsdx to .html. We will test the scenario in our environment and address it accordingly.

Hi,
below is the code.

    public static void Run2()
    {
        // ExStart:ExportToHTML
        // The path to the documents directory.
        string dataDir = dataDir = @"D:\Temp\";  

        Saving.HTMLSaveOptions saveOptions = new Saving.HTMLSaveOptions();
        // Load diagram
        Diagram diagram = new Diagram(dataDir + "hyperlink_in_new_tab.vsdx");
        // Save diagram
        diagram.Save(dataDir + "hyperlink_in_new_tab.html", saveOptions);
        // ExEnd:ExportToHTML
    }

Thanks.

@julien.mevel.isilog

We have logged an issue as DIAGRAMNET-51736 in our issue tracking system for the sake of correction. We will further look into details of the issue and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as DIAGRAMNET-51736) have been fixed in Aspose.Diagram for .NET 19.12.

Hi,

I confirm that this issue is solved with version 19.12.

Thanks.