Last post Mar 08, 2011 10:58 AM by momer40
Mar 08, 2011 10:58 AM|momer40|LINK
I am using following method to print a crystal report but it doesn't work after publishing my website to development server.
Development Server doesn't have any printer installed on it.
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()
' Stop buffering the response
Response.Buffer = False
' Clear the response content and headers
myRpt = Session("Rep")
' Export the Report to Response stream in PDF format and file name Customers
' There are other format options available such as Word, Excel, CVS, and HTML in the ExportFormatType Enum given by crystal reports
myRpt.PrintToPrinter(1, False, 0, 0)
myRpt.ExportToHttpResponse(ExportFormatType.Excel, Response, True,"Customers")
placeResults.Visible = True
Catch ex As Exception
ex = Nothing
Is there any way of printing a report through server without installing all the printers becuase
website will be used on LAN and outside LAN as well?