Incorrect result after Save as html

I have one visio document which generates invalid html.
Here is a sample application to reproduce the problem:
aspose-test-app.zip (993.3 KB)

Steps to reproduce:

  1. Open project in Visual Studio and run it
  2. Choose a destination folder and press the button
  3. In the destination folder you can file html file. Open it. You should see a white content only. Now open Visio document from the project - it contains many shapes.

If you need more info, please let me know

@mmdevelopment

Cause

The issue you’re experiencing with the Visio document generating invalid HTML could be due to various reasons, such as unsupported shapes, incorrect save options, or issues in the document structure itself.

Solution

To troubleshoot and resolve the problem, consider the following steps:

  1. Check Document Structure: Ensure that the Visio document does not contain any unsupported shapes or elements that may not translate well into HTML.

  2. Use Correct Save Options: When saving the Visio document as HTML, make sure to use the appropriate save options. You can specify options like page layout and whether to include background images.

  3. Update Aspose.Diagram: Ensure you are using the latest version of the Aspose.Diagram library, as updates often include bug fixes and improvements.

  4. Test with Simple Shapes: Create a simple Visio document with basic shapes and try saving it as HTML. This can help determine if the issue is with specific shapes or the document itself.

Code

Here’s a sample code snippet to save a Visio document as HTML with specified options:

using Aspose.Diagram;

string dataDir = "path_to_your_visio_file.vsdx";
Diagram diagram = new Diagram(dataDir);

// Set HTML save options
HtmlSaveOptions options = new HtmlSaveOptions();
options.PageCount = 1; // Save only the first page
options.IncludeBackground = true; // Include background images

// Save the diagram as HTML
diagram.Save("output.html", SaveFileFormat.Html, options);

Next Steps

  1. Run the above code with a simple Visio document to check if it generates valid HTML.
  2. If the issue persists, share the specific shapes or elements in your Visio document that may be causing the problem.
  3. Ensure you are using the latest version of Aspose.Diagram to benefit from the latest features and fixes.

If you follow these steps and still encounter issues, please provide additional details so I can assist you further.

@mmdevelopment
Thanks for the template file and project.
After an initial testing, I am able to reproduce the issue as you mentioned by using your template file.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): DIAGRAMNET-53784

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as DIAGRAMNET-53784) have been fixed in this update. This message was posted using Bugs notification tool by philip.zhou