我有这个简单的代码来打印页面,我想以横向打印页面,但我不会工作 这是代码 enter image description here
答案 0 :(得分:0)
尝试使用e.PageSettings.DefaultPageSettings.Landscape = true;
代替e.PageSettings.PrinterSettings.DefaultPageSettings.Landscape = true;
$a = Get-ADUser -Filter {Manager -eq 'User1'} -Properties Name, Department, Manager, Mail | Select Name, Department, Manager, Mail, @{Name="ManagerMail";Expression={(Get-ADUser (Get-ADUser $_ -Properties manager).manager -properties mail).mail}}