We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Missing SVGWriter

Hi, after upgrading to 4.2 the SVGWriter cannot be resolved in Syncfusion.Diagram.Base? greetz, Uli

2 Replies

AD Administrator Syncfusion Team July 13, 2006 06:31 AM UTC

Hi Uli, Yes, we have changed the SVGWriter class in the latest version with ToSvg class (Diagram.Base\src\SVG\ToSvg.cs ) in order to enhance the import\export functionalities of SVG files .If you run into any problem with this change could you please let us know about its details? Thank you for your continued support to Syncfusion. Regards, Praveena.


JS Johann Schraml July 13, 2006 08:08 AM UTC

Hi Praveena, thank you for your quick response. Sorry, but I think without the source files from 4.1 and 4.2 no customer is able to use the new interface from ToSvg.cs. Maybe you just forgot to add the old method from SVGWriter.cs ( public void Save(Syncfusion.Windows.Forms.Diagram.Model dgmmodel, Syncfusion.Windows.Forms.Diagram.View dgmview, string filename)). //with tosvg ToSvg svg = new ToSvg(); SizeF szModel = _diagram.Model.Bounds.Size; RectangleF rect = new RectangleF(new PointF(0, 0), szModel); Graphics gfx = svg.GetRealGraphics(new Size((int)szModel.Width, (int)szModel.Height)); _diagram.Model.Draw(gfx, rect); svg.Save(fileName); regards, Uli

Loader.
Live Chat Icon For mobile
Up arrow icon