With 6.0 sp8 I have this problem. I use
If not SalTblFindNextRow( tblBolli, nRow,0,0 )
Call SalTblSetFocusRow( tblBolli, nRow )
to scan a child table and print each row.
Set hWndHandle= SalReportView( tblBolli, hWndNULL, sReport, sVariables, sInput, nErr )
the preview window has shown only for a bit, then it goes on background and the control returns to the last row of the scanned table.
With older versions this doesn't happen. Is it a known bug? Do you have some hint to solve?
is there a reason why the report doesn't have an owner?
I guess that passing hWndForm or hWndMDI as second parameter would solve this problem.
Set hWndHandle= SalReportView( tblBolli, hWndForm, sReport, sVariables, sInput, nErr )
Uwe van der Horst
The reason is that there is no reason to have it.
Usually hWndNULL is the default window to display the preview, and I use a different window only if I have different needs.
With older versions there is no problem with hWndNULL. I will build a new window ant try.
Set hWndHandle = SalCreateWindow( frmPreview, hWndForm )
Call SalReportView( tblBolli, hWndHandle, sReport, sVariabili, sInput, nErr )
I create an empty form then I use this window that handles the preview instead of the default window.
A dirty trick for a little bug.
Who is online
Users browsing this forum: Ccbot [Crawler] and 0 guests