So I’m testing Aspose’s eval to see if it works for my company’s needs. I want to start by simply drawing a few colored rectangles on a page and arranging them. When I run my console app (code below), everything seems to work except none of the coloring of the shapes works. In fact, even within visio (2007 on windows 7) I cannot modify the shape’s line or background color. I don’t fully understand the concept of a “Master”, and when I generate a blank VDX document and load that, there are zero Masters, so the examples in the documentation never work for me. Can you shed some light on this?
Hi Chris,
You need to add masters from an existing diagram, template or stencil e.g. use attached stencil. Please install the latest version of Aspose.Diagram for .NET and use the code from http://docs.aspose.com/display/diagramnet/Add+shapes to create a new diagram and add shapes in it and feel free to contact us in case you have further comments or questions.
Best Regards,
- Does the current version of Aspose.Diagram support gradients background colors? If not when is this proposed to be added?
- I took the code from the link you gave and modified it slightly, to simply add the three shapes in a loop 100 times (so there should be 300 shapes). But there is always only 10 shapes. Is this a limitation of the evaluation version?
Hi Chris,
- You can use FillPattern for this purpose as you can see in the following code.
shape.Fill.FillBkgnd.Value = "THEMEGUARD(RGB(255,255,0))";
shape.Fill.FillForegnd.Value = "THEMEGUARD(RGB(0,176,240))";
shape.Fill.FillPattern.Value = 31;
- You are right, evaluation version allows 10 shapes only. Please visit Licensing|Documentation for more details.
Please feel free to contact us in case you have further comments or questions.
Best Regards,