1,ie11执行eventcalendar的export to pdf按钮,无效果。是不是不支持ie11?
2,执行eventcalendar的export to pdf时,event时间没有被导出到pdf显示,这个需要做额外处理吗?
export.html的部分代码
$("#exportImage").button().click(function () {
var type = $("#exporttype").val();
$("#eventscalendar").wijevcal("exportEventsCalendar", {
serviceUrl: getServiceUrl(),
eventsCalendar: $("#eventscalendar").data("wijmo-wijevcal"),
exportFileType: wijmo.exporter.ExportFileType[type],
fileName: $("#fileName").val(),
receiver: saveFile,
contentType: $("#requestContentType").val(),
method: wijmo.exporter.ExportMethod[$("#exportMode").val()]
});
});
$("#exportPdf").button().click(function () {
$("#eventscalendar").wijevcal("exportEventsCalendar", {
fileName: $("#fileName").val(),
serviceUrl: getServiceUrl(),
eventsCalendar: $("#eventscalendar").data("wijmo-wijevcal"),
exportFileType: wijmo.exporter.ExportFileType.Pdf,
receiver: saveFile,
contentType: $("#requestContentType").val(),
method: wijmo.exporter.ExportMethod[$("#exportMode").val()],
pdf: {
imageQuality: wijmo.exporter.ImageQuality[$("#imageQuality option:selected").val()],
compression: wijmo.exporter.CompressionType[$("#compression option:selected").val()],
fontType: wijmo.exporter.FontType[$("#fontType option:selected").val()],
author: $("#pdfAuthor").val(),
creator: $("#pdfCreator").val(),
subject: $("#pdfSubject").val(),
title: $("#pdfTitle").val(),
producer: $("#pdfProducer").val(),
keywords: $("#pdfKeywords").val(),
encryption: wijmo.exporter.PdfEncryptionType[$("#encryption option:selected").val()],
ownerPassword: $("#ownerPassword").val(),
userPassword: $("#userPassword").val(),
allowCopyContent: $("#allowCopyContent").prop('checked'),
allowEditAnnotations: $("#allowEditAnnotations").prop('checked'),
allowEditContent: $("#allowEditContent").prop('checked'),
allowPrint: $("#allowPrint").prop('checked')
}
});
});
|
|