This is a migrated thread and some comments may be shown as answers.

Export to SVG

1 Answer 97 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Erich
Top achievements
Rank 1
Erich asked on 23 Sep 2015, 02:22 PM

Hi I have problem with export diagram to SVG.

I get error message:

This page contains the following errors: error on line 1 at column 3494: EntityRef: expecting ';'
Below is a rendering of the page up to the first error.​

I tried kendo version 2015.2.624 and v2015.2.902. The result is the same.

I tried this code:

$("#exportSvg").click(function () {
            var diagram = $("#diagram").getKendoDiagram();
            diagram.exportSVG().done(function (data) {
                kendo.saveAs({
                    dataURI: data,
                    fileName: "diagram.svg"
                });
            });
        });

and this code with proxyURL:

$("#exportSvg").click(function () {
            var diagram = $("#diagram").getKendoDiagram();
            diagram.exportSVG().done(function (data) {
                kendo.saveAs({
                    dataURI: data,
                    fileName: "diagram.svg",
                    proxyURL: "<%= Url.Action("ExportSave", "OrganizacneSchemy") %>"
                });
            });
        });​ 

 

Where is the problem ? 

Thanks

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 25 Sep 2015, 09:44 AM
Hello,

I am not sure what could be causing the error. Could you provide a runnable sample that replicates it or at least the code that you are using for the diagram so I can check the exact setup?

Regards,
Daniel
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Diagram
Asked by
Erich
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or