Particular part of vsd file is wrongly converted to svg. (using ASpose.Diagram 20.2)
Correct output(‘2svgCorrect.svg’) was achieved only on one machine.
testexample.zip (17.9 KB)
Particular part of vsd file is wrongly converted to svg. (using ASpose.Diagram 20.2)
Correct output(‘2svgCorrect.svg’) was achieved only on one machine.
testexample.zip (17.9 KB)
Would you kindly share a sample code snippet through which you converted your VSD file into SVG. Also, please share the environment details where you were able to achieve correct results. We will test the scenario in our environment and address it accordingly.
Enviroment was the same on all machines , windows 10, x64,16GB RAM ,CPU 2.9GHZ
here’s codesnippet
{
public class Visio
{
public Visio()
{
var licFile = Properties.Resources.Aspose_Diagram;
var licStream = new MemoryStream(licFile);
var license = new License();
license.SetLicense(licStream);
}
public string VisioFormatToSvg(string filepath)
{
try
{
var paths = “”;
var fileName = Path.GetFileNameWithoutExtension(filepath);
var savePath = filepath.Replace(Path.GetFileName(filepath) ?? throw new InvalidOperationException(), “”);
var diagram = new Diagram(filepath);
var pages = diagram.Pages;
var count = 0;
foreach (Page page in pages)
{
var pageDiagram = new Diagram();
pageDiagram.Pages.Clear();
pageDiagram.Pages.Add(page);
var resultPathString = savePath + fileName + “-” + page.Name + “.svg”;
paths = paths + resultPathString + “;”;
pageDiagram.Save(resultPathString, SaveFileFormat.SVG);
count += 1;
}
return paths;
}
catch (Exception e)
{
var error = e;
throw;
}
}
}
class Program
{
static void Main(string[] args)
{
var path1 = @".\in.vsd";
var visio = new Visio();
visio.VisioFormatToSvg(path1);
}
}
}
We have logged an issue as DIAGRAMNET-51792 in our issue tracking system for the sake of further investigation. We will further look into details of it and keep you posted with the status of its correction. Please be patient and spare us little time.
We are sorry for the inconvenience.
Would you please try this special version (Aspose.Diagram for .NET 20.3.2) to get some log. Please give log file name “diagramLog.txt
” in your test folder when the output SVG is wrong and share it with us. We will further proceed to assist you accordingly.
Hello! I tested with suggested version and it apparently has to do with system`s local language, it does throw exception Invalid NURBS formula – need 4 + n*4 arguments, got 14"
now and diagramLog is as follows:
formula:NURBS(1,3,0,0,0,453125,1,0,1,0,0,54999999999998,0,1)
componets:1
componets:3
componets:0
componets:0
componets:0
componets:453125
componets:1
componets:0
componets:1
componets:0
componets:0
componets:54999999999998
componets:0
componets:1
Thanks for the feedback.
We will check the provided log and investigate accordingly. Will surely get back to you with details as soon as we have some.
The issues you have found earlier (filed as DIAGRAMNET-51792) have been fixed in Aspose.Diagram for .NET 20.4.