|
Hello.
We are som students trying to use SvgNet in asp.net to generate a svg picture´.. But it isnt working. we are using an Embed tag inside the asp.net page like this:
<embed src="SvgTest.aspx" type="image/svg+xml" ginspage="http://www.adobe.com/svg/viewer/install/" />
Below, the code for page load method of SvgTest.aspx.cs
Response.Clear();
SvgSvgElement root = new SvgSvgElement("4in", "4in", "0,0 100,100");
root.AddChildren(
new SvgRectElement(5, 5, 10, 10),
new SvgEllipseElement(30, 10, 8, 12),
new SvgTextElement("PINGU!", 10, 40)
);
string s = root.WriteSVGString(true);
Response.ContentType = "image/svg+xml";
Response.Write(s);
Maybe someone can tell us how this actuallly work??
Regards, micke.
|
|
|
|