Hello!
It seems that you only sort of fixed the problem. It was fixed for the example I provided but when I used a new Aspose.Diagram for my project the problems were still there. This has been the case for all of the issues I reported for the past few years (for the same project), every time I would try to make a simplified sample project of only a few diagram nodes for my problem and you would fix only that exact issue which at the end didn’t work for the whole diagram.
So I have decided to make another sample project, this time I included the whole diagram and a small Windows Forms interface for selecting different parameters for diagram visio export:
AsposeSample.zip (4.5 MB)
I am using Microsoft Visio Viewer 2016, not the full Visio version since our clients have only Viewer, so please test it in Visio Viewer first (full visio version should also work)
Issues:
-
When opening exported diagram, it is not centered:
Not centered.JPG (35.7 KB)
-
Some lines are going across some of the nodes, here is the example
Lines across node.png (28.8 KB)
To get the same issue like on the image I used the following parameters in my sample app:
Levels to load: 8
Levels per page: 3
On the provided picture you can see the issue present on nodes 8 and 19. However there are a lot more nodes where this is happening (for parameters 8 and 3), some of which are nodes 24, 32, 146, 152, 157 and a lot more. Please don’t just fix the issue on those nodes but find out why the problem is happening so that it will be fixed on all nodes. Also test it on different parameters, not just 8 and 3
- Some nodes are on top of each other, here is some of the examples when I used these parameters:
Levels to load: 8
Levels per page: 3
on top of each other 01.png (4.8 KB)
(to get to this page follow: node 1 -> node 8 -> node 151)
on top of each other 02.png (35.8 KB)
(to get to this page follow: node 1 -> node 12 )
The higher the “Levels per page” parameter, the worse it gets. This is the example when using:
Levels to load: 8
Levels per page: 6
on top of each other 03.png (75.0 KB)
as you can see, the whole diagram is unreadable.
Please try out various parameters and see why it is happening, I hope I don’t have to provide screenshot for every instance where this is happening (because it will take a long time). The only time that this issue does not happen is when using “Levels per page = 2”
Please let me know if you need anything else.
Thank you!