Our pure JavaScript Scheduler component


Post by Sureka »

1) How to export SchedulerPro in msp format.
2) How to export ResourceHistogram in excel, msp, pdf formats.
Is that feature available?


Post by pmiklashevich »

Hello!

1) How to export Scheduler in msp format. Is that feature available?

It's not supported in SchedulerPro. We have MspExport feature in Gantt only. It exports data to XML format which can be recognized by MS Project.

How to export ResourceHistogram in excel, msp, pdf formats.

Export to MSP and Excel is not supported.

ResourceHistogram extends SchedulerProBase class so export to PDF should work the same way. You can try it out in our ResourceHistogram demo. Just enable the headers. There is a bug when headers are hidden: https://github.com/bryntum/support/issues/2275

SchedulerPro/examples/resourcehistogram/app.js

import '../../lib/Scheduler/feature/export/PdfExport.js';
.......
const histogram = window.histogram = new ResourceHistogram({
    features : {
        pdfExport : {
            exportServer : 'http://localhost:8080/'
        }
    },
    project,
    // hideHeaders       : true, // there is a bug when headers are hidden https://github.com/bryntum/support/issues/2275
.......
new Toolbar({
    appendTo : 'container',
    cls      : 'histogram-toolbar',
    items    : [
        {
            ref  : 'exportButton',
            type : 'button',
            icon : 'b-fa-file-export',
            text : 'Export',
            onClick() {
                histogram.features.pdfExport.showExportDialog();
            }
        },

Just start the server and export the grid. Find instructions here: SchedulerPro/examples/_shared/server/README.md

Best,
Pavel

Pavel Miklashevich - Core Developer

Post Reply