Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Printing problem in production machine

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

Private Sub WebImgButPrintCustIssueRep_Click(sender As Object, e As Infragistics.WebUI.WebDataInput.ButtonEventArgs) Handles WebImgButPrintCustIssueRep.Click

reportdocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument()

reportdocument.Load(Server.MapPath("~/Reports/TransIssImgRepSelcontr.rpt"))

  reportdocument.Refresh()

reportdocument.SetParameterValue("Control#", TCtrControlToPrint.Text)

repordocument.PrintToPrinter(1,False, 0, 0)

End Sub

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

garciamq@ono.com

Former Member
Not what you were looking for? View more on this topic or Ask a question