You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
694 B
JavaScript

/// <reference path="../Scripts/jquery.min.js" />
function CreatePrintControl(url) {
if ($("#PrintControl").length >0)return;
$("<OBJECT id='PrintControl' style='DISPLAY: none; BACKGROUND-COLOR: #ffffff' codeBase='" + url + "/Components/PrintControl.CAB' classid='clsid:47140781-AE92-474e-A857-7463123961CD' VIEWASTEXT></OBJECT>").appendTo($(document.body));
}
function PrintDialog(url, filePath) {
if (PrintControl.CheckUpdate(url) == false) { PrintControl.PrintDialog(url, filePath); }
}
function MuchPrintDialog(url, filePath) {
try {
if (PrintControl.CheckUpdate(url) == false) { PrintControl.MuchPrintDialog(url, filePath); }
} catch (e) {
}
}