I'm printing PDF files from MSSQL Server 2014. I'm using FoxitReader to silent print.
I set settings in regedit to print correctly from normal cmd.exe ( fit to page) and it works from cmd:
"E:\FoxitReader\FoxitReader.exe" /t "\\xxxx\xxxx\Test\xxx.pdf" "Kyocera FS-3920DN XPS"
but when I'm trying to print via XP_CMDSHELL from SQL query:
EXEC xp_cmdshell 'E: & "E:\FoxitReader\FoxitReader.exe" /t "\\xxxx\xxxx\Test\xxx.pdf" "Kyocera FS-3920DN XPS"'
I'm losing all printer settings and options. My pdf is little bit cutted. MSSQL ignores every printer and software settings.