1.
vCounts is = 1
Is it wrong number of reports in your project?
2.
/Users/alexiscolonlugo/Documents/HomeDev.org/ADG/adgdb.db
Is it path on linux system? On linux users' folders are usually located at /home/username
3.
I've prepared a sample project of what you are trying to do,
it works on mac and linux, only a path to SQLite database was different.
SQLite database is located in user's Documents directory.
Project is located near to linux executable.
try
//________________________________________________________________________________
// PREPARE PROJECT
Dim projectPath As FolderItem = GetFolderItem( "sqlite_project.vsp" )
Dim project As VProject = New VProject( projectPath )
project.Open
//________________________________________________________________________________
// PREPARE DATASOURCE
Dim query As String = "SELECT * FROM table1"
Dim datasource As String = "sqlite:///home/user/Documents/sqlite_datasource.db"
//________________________________________________________________________________
// GENERATE REPORT
Dim report As VReport = project.MakeNewReport( "Report_1", datasource, query )
If report = Nil Then
MsgBox( "Report not generated" )
Return
End
//________________________________________________________________________________
// PRINT REPORT
Dim html As String = report.PrintToBuffer( EVReportPrintType.kToHTML, 1 )
HTMLViewer1.LoadPage( html )
catch e as VException
MsgBox( e.ErrorNumber.ToText + ": " + e.Message )
end