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
try
dim conn as VConnection = new VConnection("199.99.99.99", "user", "password"
conn.Open
dim ProjPath as FolderItem = GetFolderItem("rptingmercancias.vsp"
dim Proj as VProject = new VProject(conn, ProjPath)
Dim DataSource as String = "Vserver://host='199.99.99.99' 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.Filename= "repingremer.pd"
mPDF.ForceDownload = False
mPDF.Data= data
Proj.Close
conn.Close
ShowURL(mPDF.URL)
Exception err as VException
dim errNumber as Integer = err.ErrorNumber
Dim errString as String = err.Message
end