The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
ADAdministrator 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.
JSJohann SchramlJuly 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