DotNet Printing from Windows 7 to Printer on Windows XP

Discussion in 'ASP.NET / ASP.NET Core' started by vgmailcom, Sep 5, 2011.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. 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 ReportDocument
    rptChq.PrintOptions.PrinterName = "\\SSS4\HP LaserJet 1022"
    rptChq.PrintToPrinter(1, True, 1, 1)

    It gives "Invalid Printer specified."

    Can anyone suggest a solution?
     
  2. Print Error when print request comes from ASP.NET application on Windows 7 to XP Prn

    I have "Canon iP1900 series" printer installed on Windows XP machine (SSS51 - 192.168.1.39).
    My ASP.NET 2.0 Published Website is installed on Windows 7 machine.
    Both the machines are under same workgroup.

    On Windows 7, the above printer is configured as :-
    - Add Printer
    - Add a Local Printer
    - Create a New Port - Local Port (Port Name : \\192.168.1.39\CanoniP1)
    - "Canon Inkjet iP1900 Series" driver that comes with Windows 7 is chosen.

    On Windows 7, under "Devices and Printers", when I print Test Page from Printer Properties, printing is properly done on

    printer on XP machine.

    Through the Published Website, The Print Request is given as :-
    Dim rptChq As New ReportDocument
    rptChq.PrintOptions.PrinterName = "Canon Inkjet iP1900 series"
    rptChq.PrintToPrinter(1, True, 1, 1)

    The Print Request is sent to the Print Queue, but it shows status as "Error-Printing" and does not print.

    Can anyone suggest a solution on why the printing is not done when print request comes from ASP.NET application?
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page