Free Support Forum - aspose.com

Background color is missing in Visio's HTML version

We have found an issue when saving a visio document as HTML. Here is sample app: VisioTest.zip (25.7 KB)

To reproduce the problem:

  1. Open project in VisualStudio
  2. Run the app. Select destination folder and press a button.
  3. In the destination folder you’ll see two html files:
    3a. asposeGood.html - this is correct file
    3b. asposeWrong.html - here you can see that generated html lacks background color. This is wrong.

The problem is in the way the visio html is saved. However, for some reasons, we need to use the second saving method.

Please, let me know if you need some more information.
Thanks!

@ManMasterDevelopment

We were able to notice the issue while using Aspose.Diagram for .NET 21.1 and have logged it as DIAGRAMNET-51982 in our issue tracking system. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.

@ManMasterDevelopment
The background color is on another page of the source file.
The source code grouped the shapes of the first page only.
For this particular file, there’s only one shape in the back page,please try the following code:
var list = new List<Aspose.Diagram.Shape>();
foreach (Aspose.Diagram.Shape shape in diagram.Pages[1].Shapes)
{
list.Add(shape);
}
foreach (Aspose.Diagram.Shape shape in diagram.Pages[0].Shapes)
{
list.Add(shape);
}
Thanks.