Posted: 9/5/2011
I have "HP LaserJet 1022" printer installed on Windows XP machine (SSS4).My ASP.NET 2.0 Published Website is installed on Windows 7 machine.The corresponding printer driver (lj1020_1022-HB-pnp-win32-en) is installed on Windows 7 machine.Both the machines are under same workgroup.At Windows level, the Print Request from Windows 7 machine to the Printer on XP is processed successfully.
Through the Published Website, The Print Request is given as :-Dim rptChq As New ReportDocumentrptChq.PrintOptions.PrinterName = "\\SSS4\HP LaserJet 1022"rptChq.PrintToPrinter(1, True, 1, 1)
It gives "Invalid Printer specified."
Can anyone suggest a solution?
Posted: 9/12/2011
Hi,
Try to change the line:
rptChq.PrintOptions.PrinterName = "\\SSS4\HP LaserJet 1022"
with line:
rptChq.PrintOptions.PrinterName = @"\\SSS4\HP LaserJet 1022"
Best Regards,
Gjorgji