i used xojo and tray to call a report following the video sample and to conect to sql server
but the aplication crash in connection this is my code, in the line 3 give a error, please some body have idea how to fix tks a lot
dim conn as VConnection = new VConnection("18.104.22.168", "user", "password"
dim ProjPath as FolderItem = GetFolderItem("rptingmercancias.vsp"
dim Proj as VProject = new VProject(conn, ProjPath)
Dim DataSource as String = "Vserver://host='22.214.171.124' dbname= 'database' user='user' password= 'password' "
Dim Query as String = "qryingresomercancia"
Dim report as VReport = Proj.MakeNewReport("Ingreso_Mercaderia", DataSource,Query)
Dim data as String = report.PrintToBuffer(EVReportPrintType.kToPDF,1)
mPDF= new WebFile
mPDF.MIMEType = "application/pdf"
mPDF.ForceDownload = False
Exception err as VException
dim errNumber as Integer = err.ErrorNumber
Dim errString as String = err.Message