Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Sep 14, 2012 03:55 AM by Ajay2707
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?
Sep 13, 2012 09:10 AM|LINK
Yuo can use CrystalReport's PrintToPrinter method
See this :
Hope this helps..
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
Public rpt As New ReportDocument
then I call rpt
dm1.rpt.SetDatabaseLogon("sa", "sa", ".", "carRent")
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
Sep 13, 2012 01:27 PM|LINK
check the forum.
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
Sep 14, 2012 03:55 AM|LINK
we can send directly to client printer when printer configure in server and define default printer. In that case printtoprinter work.