Converting SVG to other formats

Oct 11, 2011 at 8:33 AM

Hi Expert,

Is it possible to render an SVG in Microsoft Word, using the SVG Rendering Engine? If it works, please let me know how. The following is a work-around I tried, but I don't get the result.

I tried to read the SVG into a memory stream and save it as PNG or JPG for rendering in Word, but all I get are black boxes with the resulting jpg or png file size -> 2KB. 

What am I doing wrong here? Please help...

 using (FileStream fileStream = File.OpenRead(svgImagePath))
           MemoryStream memoryStream = new MemoryStream();
           fileStream.Read(memoryStream.GetBuffer(), 0, (int)fileStream.Length);
           SvgDocument svgDocument = SvgDocument.Open(memoryStream);
           string imagePath = "local.jpg";

Many thanks,