Hi,
When i execute my Vb6 application (with F5 in Vb) thant run a report , that's ok.
when i run application which i've installed on another Pc, report.action = 1 shutdown
here my sample code
Public Sub ConfEtActiveReport(ByRef rpt, Optional vmintNbrCopies As Integer)
On Error GoTo ConfEtActiveReport
' Alimentation du report avec les informations
rpt.PrinterName = vgstrNomImpr
rpt.PrinterPort = vgstrNomPort
rpt.PrinterDriver = vgstrNomDriver
rpt.CopiesToPrinter = IIf(Len(vmintNbrCopies) = 0, 1, vmintNbrCopies)
' Réinitialisation des variables
vgstrNomImpr = ""
vgstrNomPort = ""
vgstrNomDriver = ""
' Lancement de l'état
rpt.Action = 1
'rpt.PageZoom (75)
Exit Sub
ConfEtActiveReport:
Aff_MesBox CRITIQUE, "ConfEtActiveReport : " & Err.Description
End Sub
where rpt is an report object pass by reference with propety connect = UID=userid;PWD=passwd;DSQ=datasource
these 3 param is ok when i connect my report in designer
vgstrNomImpr, vgstrNomPort, vgstrNomDriver are 3 variables may be null
on the pc where the app is installed, sqlnet run correctly, tnsnames ok, the database access in app is ok
I don't understand
thanks
[sig][/sig]
When i execute my Vb6 application (with F5 in Vb) thant run a report , that's ok.
when i run application which i've installed on another Pc, report.action = 1 shutdown
here my sample code
Public Sub ConfEtActiveReport(ByRef rpt, Optional vmintNbrCopies As Integer)
On Error GoTo ConfEtActiveReport
' Alimentation du report avec les informations
rpt.PrinterName = vgstrNomImpr
rpt.PrinterPort = vgstrNomPort
rpt.PrinterDriver = vgstrNomDriver
rpt.CopiesToPrinter = IIf(Len(vmintNbrCopies) = 0, 1, vmintNbrCopies)
' Réinitialisation des variables
vgstrNomImpr = ""
vgstrNomPort = ""
vgstrNomDriver = ""
' Lancement de l'état
rpt.Action = 1
'rpt.PageZoom (75)
Exit Sub
ConfEtActiveReport:
Aff_MesBox CRITIQUE, "ConfEtActiveReport : " & Err.Description
End Sub
where rpt is an report object pass by reference with propety connect = UID=userid;PWD=passwd;DSQ=datasource
these 3 param is ok when i connect my report in designer
vgstrNomImpr, vgstrNomPort, vgstrNomDriver are 3 variables may be null
on the pc where the app is installed, sqlnet run correctly, tnsnames ok, the database access in app is ok
I don't understand
thanks
[sig][/sig]