cancel
Showing results for 
Search instead for 
Did you mean: 

Printing problem in production machine

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

In Both computers, Development and Production are installed SAP 12, last update

I have tested with Print Mode = ActiveX and PDF and I didn't get nothing, both works in Development and doesn't work in Production

Thanks.


DellSC
Active Contributor
0 Kudos

Have the printer drivers been installed on the Production machine?  It needs to be able to "see" the printer in order to print to it.  With the newer versions of Windows, this means that it's not enough to have the printer on the same network as the server, the printer has to be available under "Devices and Printers" on the server in order to be able to print to it.

-Dell

Answers (0)