on 01-02-2015 12:47 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
77 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.