Link to home
Start Free TrialLog in
Avatar of Rajeshk_cgm
Rajeshk_cgmFlag for India

asked on

Unable to Print Crystal Report Document in Client Browser

Hi.. i m using Crystal Report Document in asp.net ... when i try to to print the Report in Application server it is working perfectly.. But unable to print on executing  the same  through IIS in any other client machine...  Hope u may understand the issue.. pls help me , thanks in advance...
Avatar of Mike McCracken
Mike McCracken

Do the client have a default printer?

Does the server have a default printer?

Are you previewing then printing?

mlmcc
Avatar of Rajeshk_cgm

ASKER

no, the client may or may not have the default printer.,

but my problem when the application runs on client machine, the printing option is not working,

If there is no default printer specified then you can't print.

How are you running the report?

Is this a single report with the issue or all reports?

How are you trying to print?

mlmcc
hi.. mlmcc.,

Please Check it out my Coding., what i didnt wrong..  its working fine in server side, but nothing happens in client side

       reptdoc = new ReportDocument();
        string strPath = Server.MapPath("~/Reports/RequisitionListDetailsRpt.rpt");
        reptdoc.Load(strPath);
        objDAOReqApproval.ActionType = "SEARCH";
        objDAOReqApproval.Requisition_ID = hdnRequisitionID.Value;
        objBLLReqApproval.ViewRequisitionListReport(objDAOReqApproval);
        reptdoc.SetDataSource(objDAOReqApproval.RequisitionData.Tables[0]);
        crRequisitionListDetailsReport.ReportSource = reptdoc;
        crRequisitionListDetailsReport.DataBind();
        reptdoc.PrintToPrinter(1, false, 0, 0);

ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial