Problems to deploy valentina reports with xojo 2018 r4
dont do anything just crash and close xojo wep app
some solution
try
dim ProjPath as FolderItem = GetFolderItem("rptingreso.vsp")
dim Proj as VProject = new VProject( ProjPath )
Proj.Open()
Dim DataSource as String = "mssql://host='xxxxxxxxx' port = 1433 user='xxxxxxx' password= 'xxxxxxxxx' dbname= 'xxxxxxxx'"
Dim report as VReport = Proj.MakeNewReport("rptingresomer", DataSource )
Dim data as String = report.PrintToBuffer(EVReportPrintType.kToPDF,1)
mPDF= new WebFile
mPDF.MIMEType = "application/pdf"
mPDF.Filename= "repingremer.pdf"
mPDF.ForceDownload = False
mPDF.Data= data
Proj.Close
ShowURL(mPDF.URL)
catch err as VException
dim errNumber as Integer = err.ErrorNumber
Dim errString as String = err.Message
end try
You run the application and it crashes on this line
Dim report as VReport = Proj.MakeNewReport("rptingresomer", DataSource )
Is it because of the exception? Can you debug step by step to check the errString/errNumber values?
If you get to MakeNewReport call most likely there is no problem with ADK. The problem in the discussion you found was due to not updated Xojo cache after V4RB plugin was upgraded to a new version.
1) Please describe when you run it in the debugger does it stop with an exception on the MakeNewReport line?
Can you click the VException variable to check its value? (Selected on screenshot)
Or does it just stop debugging?
2) You can generate the datasource string within the Valentina Studio - select the datasource on the project tab and click Show Datasource String context menu item. Then you can paste it to MakeNewReport call.
3) You can install any version released during a year after the day of purchase. Previously released versions can be found here: http://valentina-db.com/download/prev_releases/
Dim report as VReport = Proj.MakeNewReport("rptingresomer", DataSource )