Hi,
I am migrating an application from xojo 2019 R2 to xojo 2019 R3 on windows 10
With version 2019 r2 all reports worked fine. We tested all in a preproduction environment
With xojo version 2019 r3 and Reports ADK as of january 2020 I get (for all valentina project files) the following error:
365829: File "UNKNOWN" is not open.
Testing in debug mode does not report any error and works fine. I get the error only after build, invoking the reportcount function
Also, if I bypass the error and try to execute a report, the application exits without notice.
Here is my code:
Dim i As Integer
Dim count As Integer
Dim repName as string
try
mAppFolder = getFolderItem( "" )
#if DebugBuild
mProjectPath =new FolderItem( "c:/xojobiapro/reports/cqualita.vsp",folderitem.PathModes.Shell)
#else
mProjectPath=getfolderitem("".Child("reports".child("cqualita.vsp"
#endif
mProject = new VProject( mprojectpath )
mProject.Open()
if mProject <> nil then
count = mProject.ReportCount()
end if
pbPreview.Enabled = true
pbSaveAsPDF.Enabled = true
doreportbutton.enabled=true
Exception err as VException
MsgBox Str(err.ErrorNumber) + ":" + err.Message+" "+mProjectPath.NativePath
end
Here is the valentina LOG
Valentina_SetDebugLevel...
PARAM: inLevel = 3
return
VProject_Ctor_Local...
PARAM: instance = 89006824
PARAM: inFi = 244182184
return
VProject_Open...
PARAM: instance = 89006824
return
VProject_GetReportCount...
PARAM: instance = 89006824
ERROR: 0x59505 File "UNKNOWN" is not open.
return res = 0
Can you help me?
Thanks!