Quantcast
Viewing all articles
Browse latest Browse all 3636

Error when i try to print in Crystal Report

Hi , im student from mexico, i have a truble with Crystal Report so u can help me ? plz

 

my problem with Crystal Report is when i try to print Image may be NSFW.
Clik here to view.
error-print.jpg

check my code

 

    repComandaGeneral.Load("C:\Users\Usuario\Documents\DozRES - comandas\RepTicketCGeneral.rpt", CrystalDecisions.Shared.OpenReportMethod.OpenReportByDefault)                repComandaGeneral.SetDatabaseLogon("root", "1234", "localhost", "dozres") ' Login base de datos

                'Dim MiConexion As New ConnectionInfo

                'Dim myTables As Tables = repComandaGeneral.Database.Tables ' Informe.Database.Tables

                'MiConexion.ServerName = "192.168.1.254"

                'MiConexion.DatabaseName = "dozres"

                'MiConexion.UserID = "root"

                'MiConexion.Password = "1234"

                'For Each myTable As CrystalDecisions.CrystalReports.Engine.Table In myTables

                '    Dim myTableLogonInfo As TableLogOnInfo = myTable.LogOnInfo

                '    myTableLogonInfo.ConnectionInfo = MiConexion

                '    myTable.ApplyLogOnInfo(myTableLogonInfo)

                'Next

                repComandaGeneral.SetParameterValue(0, "Value")

                repComandaGeneral.SetParameterValue("cm_id", cm_id)

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

 

 

                repComandaGeneral.Close()


Viewing all articles
Browse latest Browse all 3636

Trending Articles