Hi All,
How can I can save my file to the server?
Is this possible?
Thanks,
Hi All,
How can I can save my file to the server?
Is this possible?
Thanks,
Check
docs.dhtmlx.com/gantt/samples/08 … store.html
You can instruct export to store file online and send back only link to the exported file. This link can be sent to your server, where back-end code can grab content from our export server and store it as necessary.
Hi Sir,
Thanks for the idea.
Is the data secured in the online storage?
Thanks,
Hi,
When i exported image, the tasks were not visible. Only the grids are displayed.
Thanks,
Data is secure. There is no external access to it, and all generated files will be deleted in 24hours
As for generation problem - which version of dhtmlxGantt you are using ? In case of Gantt 3.x can you provide the sample where problem can be reconstructed.
HI Sir,
I’m using version 3.0.
I found the cause and its related to in scaling.
Here is the scaling config :
gantt.config.scale_unit = "year";
gantt.config.step = 1;
gantt.config.date_scale = "%M, %Y";
var weekScaleTemplate = function(date){
var dateToStr = gantt.date.date_to_str("Week #%W"); //("%d %M");
var endDate = gantt.date.add(gantt.date.add(date, 1, "week"), -1, "day");
return dateToStr(date); // + " - " + dateToStr(endDate);
};
gantt.config.subscales = [
{unit:"week", step:1, template:weekScaleTemplate},
{unit:"day", step:1, date:"%d %M" }
];
When i change the gantt.config.scale_unit to “days” i can export the image properly. But when i set it to years, only the grids were visible.
Thanks for the help.
Export service was updated, the above scenario must work correctly now.
Hi Sir,
Where i can find this?
The above update was on server side, so you need not change anything in your code. Just run export and it must work correctly now
Thanks, i will check.
If you have active license - just send the domain name, for which it need to be removed, to the support@dhtmlx.com ( domain name from which export initiated )
Hi Sir,
I’ve tried the export functionality and it works great!!!
But one thing, I had an output image with dimensions of 3702 X 1107 and i scaled it to 1224 X 633, the text for gantt tasks are not readable anymore as an effect on compressing the pixels. Is it possible if the exported image will be on higher dpi (high quality, something) so that when im going to resized it, the text in the image are still readable.
If we provide the double-quality image it will result in 7402 X 2214 image ( double sized image ), after that you will resize it to 1224 X 633 and as result image quality will degrade the same as existing export image. Image of any quality will degrade if you need to resize it smaller than original size.
Please correct me if I missing something.
Hi Stanislav,
You are correct its hard to retain the quality of the image, will find another way on this.
Thanks a lot!