how to print crystal report directly to client side printer in vb.net
i am working in a web application and now i design a report,I need clients using this web application to print reports in thier client side printers , no network printer found each branch or each pc has it'b printer i need each branch to print reports
what is the simplest way to do that without preview the report?
sherifabdalm...
Member
9 Points
28 Posts
how to print crystal report directly to client side printer in vb.net
Sep 13, 2012 08:32 AM|LINK
how to print crystal report directly to client side printer in vb.net
i am working in a web application and now i design a report,I need clients using this web application to print reports in thier client side printers , no network printer found each branch or each pc has it'b printer i need each branch to print reports
what is the simplest way to do that without preview the report?
hassanmehmoo...
Star
8970 Points
1590 Posts
Re: how to print crystal report directly to client side printer in vb.net
Sep 13, 2012 09:10 AM|LINK
Yuo can use CrystalReport's PrintToPrinter method
See this : http://www.c-sharpcorner.com/UploadFile/mahesh/CRPrinting10062006161454PM/CRPrinting.aspx
--
Hope this helps..
Mark as Answer, if it answers you..
--
sherifabdalm...
Member
9 Points
28 Posts
Re: how to print crystal report directly to client side printer in vb.net
Sep 13, 2012 11:21 AM|LINK
I user report document without using report viewer,
May I ask you if that way can print report at client side default printer
My code
I define
Public rpt As New ReportDocument
then I call rpt
dm1.rpt.Load(Server.MapPath("crystalreportBondDel.rpt"))
dm1.rpt.SetDatabaseLogon("sa", "sa", ".", "carRent")
dm1.rpt.SetParameterValue("BondID", ViewState("BondDelID"))
dm1.rpt.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA4
dm1.rpt.PrintToPrinter(1, False, 1, 1)
this code work well from vs 2010 then press F5 but when I deploy it to iis server
when I press to print loading and no action and no print as well
Ajay2707
Contributor
4483 Points
868 Posts
Re: how to print crystal report directly to client side printer in vb.net
Sep 13, 2012 01:27 PM|LINK
Hi Friend,
check the forum.
http://forums.asp.net/t/1842337.aspx/1?need+to+print+crystal+report+to+printer+client
hassanmehmoo...
Star
8970 Points
1590 Posts
Re: how to print crystal report directly to client side printer in vb.net
Sep 14, 2012 12:45 AM|LINK
Make sure u have s printer set as default printer and server's connection is up with the printer
--
Hope this helps..
Mark as Answer, if it answers you..
--
Ajay2707
Contributor
4483 Points
868 Posts
Re: how to print crystal report directly to client side printer in vb.net
Sep 14, 2012 03:55 AM|LINK
Hi,
we can send directly to client printer when printer configure in server and define default printer. In that case printtoprinter work.