Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error 20599 in CR7

Status
Not open for further replies.

pascalv

Programmer
Sep 15, 2000
2
FR
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]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top