Sorry for my English (I'm French).<br>My reports are OK when I run them with my Visual basic 5.0 application on my developpement PC (CR 8.0 installed). <br>They're also OK inside the CR 8.0 developpment tool.<br>When I run a VB 5.0 setup program on another PC without CR 8.0, they aren't working, error message : 'Unable to open the sql server'. <br>I'm using the OCX method. <br>Does somedy have any idea of what happens ?<br><br>Regards,<br><br>Here's a sample of the VB code :<br><br>With frmMDI.CRControl<br><br> .Reset<br> <br> .ReportFileName = gsReportPath & "\" & CStr(vEtat(0))<br> .Connect = "DSN=" & sServeur & ";UID=" & sUser & ";PWD=" & sPwd & ";DSQ=" & sBase<br> .CopiesToPrinter = 1<br> .DiscardSavedData = True<br> <br> .WindowTitle = CStr(vEtat(2))<br> <br> .Formulas(0) = "CR_Selection = '" & gsCodeUtilisateur & "'"<br> .Formulas(1) = "CR_Environnement = '" & APP_ResolveString(ressource(672), "¦1", vbTab & gsEnvironnement) & "'"<br> .Formulas(2) = "CR_Utilisateur = '" & APP_ResolveString(ressource(673), "¦1", vbTab & gsUtilisateur) & "'"<br> .Formulas(3) = "CR_DateAppli = '" & APP_ResolveString(ressource(670), "¦1", frmMDI.pnl3Dheure) & "'"<br> .Formulas(4) = "CR_DateRPT = '" & APP_ResolveString(ressource(671), "¦1", Format(Date, "Long Date" & " " & Format(Time, "Long Time") & "'"<br> <br> iNumFla = 5<br> For iCpt = 1 To UBound(vEtat) Step 2<br> .Formulas(iNumFla) = CStr(vEtat(iCpt)) & " = '" & CStr(vEtat(iCpt + 1)) & "'"<br> iNumFla = iNumFla + 1<br> Next iCpt<br> <br> .Destination = crptToWindow 'Aperçu<br> .WindowState = crptMaximized<br> <br> .Action = 1 <br> <br>