Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Print report through client machine? Post Reply Post New Topic
Author Message
momer79
Newbie
Newbie


Joined: 23 Feb 2009
Location: United Kingdom
Online Status: Offline
Posts: 12
Quote momer79 Replybullet Topic: Print report through client machine?
    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? 
IP IP Logged
CircleD
Senior Member
Senior Member
Avatar

Joined: 11 Mar 2011
Location: United States
Online Status: Offline
Posts: 251
Quote CircleD Replybullet Posted: 14 Mar 2011 at 2:51pm
Does your client have his printer set to share?
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.