It's much more convenient to test in this mode at first - you control the application completely, you make it executable, run it from the command line, stop it at any moment with Ctrl+C, check actual output. If the user is not allowed to connect - create the user that can connect from any host.Ģ) Switch the deployment type to Stand Alone. If the MySQL server rejects connections - it may be bound to the local address, so fix the mysql.cnf. Use the same MySQL server address in the Valentina Studio and Xojo applications - so there will not be the local 127.0.0.1 address in the datasource, but actual network address of the Linux server. Go line by line, check the data variable with report - is it empty? If you are still unable to get a report please try the following.ġ) Try to debug the application on Windows in Xojo IDE. INSERT INTO `dtt_timerDayPartsReportPopeyes85901` ( `f1`, `f2`, `f3`) I installed the same system and used the sample code you posted before.Īfter installing the fonts I generated the report.ĬREATE TABLE `dtt_timerDayPartsReportPopeyes85901` ( I already see the video in you tube of Valentina in Xojo Web APP. Xojo build the project good and I have the valentina project(vsp) in the same folder os my web app. I create a container and a button and this is the following instruction I did :ĭim conn as VConnection = new VConnection("127.0.0.1","username","password")ĭim projPath as FolderItem = GetFolderItem("ercdtt.vsp")ĭim proj as VProject = new VProject(conn,projPath)ĭim datasource as String = "mysql://host='localhost' port='3306' dbname='database' user='username' password='password'"ĭim query as String = "Select * from dtt_timerDayPartsReportPopeyes85901"ĭim report as VReport = proj.MakeNewReport("DayPartPopeyes",datasource, query)ĭim data as string =report.PrintToBuffer(EVReportPrintType.kToPDF, 1 )ĭim errNumber as Integer = err.errorNumber Hello, I have in the open event for the app my valentina license.
0 Comments
Leave a Reply. |