Print Page | Close Window

Print report through client machine?

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=12547
Printed Date: 21 Apr 2025 at 1:17am


Topic: Print report through client machine?
Posted By: momer79
Subject: Print report through client machine?
Date Posted: 08 Mar 2011 at 11:37pm

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? 



Replies:
Posted By: CircleD
Date Posted: 14 Mar 2011 at 2:51pm
Does your client have his printer set to share?



Print Page | Close Window