Print and PDF Export

The timeline includes print optimized styling through the print add-on. This needs to be added to the download package or installed separately from a dedicated NPM package.

Print styling is applied when someone prints the page that contains the timeline. In addition to that, you can call the print method on the instance which grabs only the markup of the timeline, places it onto a temporary page and calls the browsers printing function. This is especially useful when you want to add a button to only print the timeline rather than the whole page.

Besides printing, PDF export is possible through the print dialog of the browser.

The print module is not available in the trial. You can try the live demo to see how it looks.
Get started with the timeline

Demo

By calling the print method, the timeline will open a new window and print its content.

html<mbsc-eventcalendar #mycal
    [view]="calView"
    [modules]="calendarModules">
</mbsc-eventcalendar>
<mbsc-button (click)="printCal()">
    Print timeline
</mbsc-button>
tsimport { print } from '@mobiscroll/print';

@Component({
    selector: 'app-root',
    templateUrl: './app.component.html'
})
export class AppComponent {
    @ViewChild('mycal', { static: false })
    inst!: MbscEventcalendar;
    calendarModules = [print];
    calView = {
        timeline: {
            type: 'week',
            startDay: 1,
            endDay: 5,
            eventDisplay: 'fill'
        }
    };
    printCal(): void {
        this.inst.print();
    }
}
Use the Timeline print add-on to print just the timeline view — apply print-optimized styles and export to PDF through the browser.

Duplicate Session

You have signed in on a different machine. To keep everything in sync, you have been signed out of this session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.

Duplicate Session

We noticed you are logged in on a different machine and have closed your old session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.