search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How do I specify Landscape for Print?

Asked by stapes
6 years ago.

I am printing a DayPilot scheduler using the following code:

var image = this.$scope.dps.scheduler.exportAs("SVG"
, {
area: "range",
dateFrom: this.formatDate(fromDate),
dateTo: this.formatDate(toDate),
quality: 0.1
}).print();

Is it possible to tell it to print in Landscape format?

mvc
Comment posted by stapes
6 years ago.

An answer some time this year would be appreciated.

Answer posted by Dan Letecky [DayPilot]
6 years ago.

I did a couple of tests but unfortunately the only browser that lets you specify orientation when printing is Chrome.

The only reliable way is to create a PDF file and insert the exported image. See the following tutorial:
https://code.daypilot.org/73551/html5-scheduler-pdf-export-javascript

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.