Hi
We have website and hosted in different domain ,not in same network.That website have some files doc,pdf and png,when access that website using url and try to print,then need to call client side print and print that file,In chrome and mozila client side print code woring only for pdf file,may be pdf viewer installed in client machine,ie,edge it just ask save,save as and open option,but we need to call client side printer without saving in client machine.it is possible ?
What I have tried:
This only work in chrome and mozilla
function btnPrint1_ClientClick() {
var opts = 'width=700,height=500,toolbar=0,menubar=0,location=1,status=1,scrollbars=1,resizable=1,left=0,top=0';
var newWindow = window.open("pdf/SKMBT_C22416051313120.pdf", 'name', opts);
newWindow.print();
return false;
}
This server side code nothing happen
Dim objPJ As New Process
objPJ.StartInfo.FileName = Server.MapPath("") + "/pdf/originalfile.pdf"
objPJ.StartInfo.Verb = "Print"
objPJ.StartInfo.CreateNoWindow = True
objPJ.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden
Dim setting As New PrinterSettings
setting.DefaultPageSettings.Landscape = True
objPJ.Start()
I referred this link
http://stackoverflow.com/questions/21900261/printing-a-pdf-file-on-client-side-printer-in-asp-net-c
Regards
Aravind