[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1425
  • Last Modified:

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...
0
Rajeshk_cgm
Asked:
Rajeshk_cgm
  • 3
  • 2
1 Solution
 
mlmccCommented:
Do the client have a default printer?

Does the server have a default printer?

Are you previewing then printing?

mlmcc
0
 
Rajeshk_cgmAuthor Commented:
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,

0
 
mlmccCommented:
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
0
 
Rajeshk_cgmAuthor Commented:
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);

0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now