Happy New year 2015
This below code is working fine in the development machine, when you press the button you get the report printed in the printer for the parameter provided.
Development machine:
Windows 8 64 bits
VS2013 Professional Update 4
Net Framework 4.5
Crystal Report 13
PrivateSub WebImgButPrintCustIssueRep_Click(sender AsObject, e As Infragistics.WebUI.WebDataInput.ButtonEventArgs) Handles WebImgButPrintCustIssueRep.Click
reportdocument AsNew CrystalDecisions.CrystalReports.Engine.ReportDocument()
reportdocument.Load(Server.MapPath("~/Reports/TransIssImgRepSelcontr.rpt"))
reportdocument.Refresh()
reportdocument.SetParameterValue("Control#", TCtrControlToPrint.Text)
repordocument.PrintToPrinter(1,False, 0, 0)
EndSub
Production Machine:
Windows Server 2012
The application works fine after deployment, but when you press on the button to print the report directly to the printer, doesn't give any error, doesn't do nothing visible but doesn't print.
I HOPE YOU CAN HELP ME, I am having this problem since some months ago, I am researching and reading everything I found, no luck.
Thanks.
Manolo Garcia