我正在尝试使用this链接的代码发送和打印任何文件。但问题是我无法从打印机设置对话框启用打印机选项到页面选择范围。现在经过一些在互联网上的挖掘后,我找到了一些方法来使用下面的代码:
Method.call("methodNameOnServer", function clientCallback(results) { // do something. });
但它似乎是WPF代码,并不适用于普通的winform c#应用程序,尽管我使用的是.NET 4.5框架。
有关如何在不使用WPF的情况下执行相同操作的任何线索?
答案 0 :(得分:2)
In var user = [{
id: 1,
name: 'linto',
img: 'img'
}, {
id: 2,
name: 'shinto',
img: 'img'
}, {
id: 3,
name: 'hany',
img: 'img'
}]
console.log(_.reject(user, function(usr) {
return usr.name == 'shinto';
}));
namespace there is <script src="http://underscorejs.org/underscore.js"></script>
that has Properties:
Why not use them instead? Please look at MSDN reference: https://msdn.microsoft.com/en-us/library/system.windows.forms.printdialog.aspx
Edit:
I've found that some people mention usage of:
System.Windows.Forms
would also be neeeded. But it also depends how your code looks like and that is not provided at the moment.