I am using following method to print a crystal report, it worls fine on local machine but it doesn't work after publishing my website to development server.
rpt.PrintToPrinter(1, False , 0, 0)
Development Server doesn't have any printer installed on it.
Here is the code to print a crystal report. I am using custom buttons to print a report.
' Get the report document
'Dim repDoc As ReportDocument = getReportDocument()
ShowResults()
' Stop buffering the response
Response.Buffer = False
' Clear the response content and headers
Response.ClearContent()
Response.ClearHeaders()
Try
myRpt = Session("Rep")
myRpt.PrintToPrinter(1, False, 0, 0)
placeResults.Visible = True
Catch ex As Exception
Console.WriteLine(ex.Message)
ex = Nothing
End Try
Is there any way of printing a report through client machine?