Hi,
thank you for the great update!
I try to use the pdf-export with webix jet and it does not work.
Using regular javascript it works (i used a sample of you), but in combination with webix Jet, there is no error message and the pdf is not generated…
Any hints?
Thanks,
Martin
define([
], function () {
// var big film set is loaded...
var ui = {
margin:10,
rows:[
{ view:"datatable", data:big_film_set, height:600, width:500, columns:[
{ id:"rank", header:"", css:"rank", width:50},
{ id:"title", header:"Film title", fillspace:true },
{ id:"year", header:"Year", width:80},
{ id:"votes", header:"Votes", width:100}
]},
{ margin:5, cols:[
{ view:"button", value:"Export all", autowidth:true, click:function(){
webix.toPDF($$("$datatable1"));
}},
{ view:"button", value:"Export 'title' & 'rank' with custom file name", autowidth:true, click:function(){
webix.toPDF($$("$datatable1"), {
columns:{ rank:true, title:true },
filename:"datatable"
});
}}
]}
]
};
return {
$ui: ui,
$oninit: function (view) {
}
};
});
Now I get the message:
Failed to load resource: the server responded with a status of 404 (Not Found)
(index):1 XMLHttpRequest cannot load http://cdn.webix.com/edge/fonts/PTS-webfont.ttf. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost’ is therefore not allowed access. The response had HTTP status code 404.
In the past versions of the pdf export the footer of a datatable was included in the export. Is there a way or option to include the footer again in the new version?
Thanks!
I’m having the same problem @martinfruemorgen reported on March, 3rd:
XMLHttpRequest cannot load http://cdn.webix.com/edge/fonts/PTS-webfont.ttf. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://tlksrv34’ is therefore not allowed access. The response had HTTP status code 404
there is a problem with webix 5.0 in combination with the old jet framework (0.5).
When exporting a datatable to excel, I see the error
“Uncaught Error: See almond README: incorrect module build, no module name”