hi
I have an option in my application to select SalReportView or SalReportPrintToFile for a various of reports. When I run to screen (SalReportView) the report is always placed behind the application window, is it a way to bring it on top.
I have tried with no luck
Set hWndReport = SalReportView ( hWndForm,hReport, strReportFile,strReportBinds, strReportInputs, nError )
Call SalBringWindowToTop( hReport )
Thanks
SalReportView
Re: SalReportView
Hi kjellvang,
you could try hWndReport when calling SalBringWindowToTop:
Set hWndReport = SalReportView ( hWndForm,hReport, strReportFile,strReportBinds, strReportInputs, nError )
Call SalBringWindowToTop( hWndReport )
Regards
Henning
you could try hWndReport when calling SalBringWindowToTop:
Set hWndReport = SalReportView ( hWndForm,hReport, strReportFile,strReportBinds, strReportInputs, nError )
Call SalBringWindowToTop( hWndReport )
Regards
Henning
Re: SalReportView
hi and thanks, but same result. I short second I see the report, then it places itself behind the active window or maybe all the way to the bottom.
I have one report that works fine, the difference between these 2 are:
The working is called direct from the window
The not working is called from a dialog box called the window
it might be something here. Maybe try to change some logic, anyhow thanks for trying to help
KV
I have one report that works fine, the difference between these 2 are:
The working is called direct from the window
The not working is called from a dialog box called the window
it might be something here. Maybe try to change some logic, anyhow thanks for trying to help
KV
Re: SalReportView
Hi,
do you close the dialogbox after SalBringWindowToTop?
And: is the dialogbox opened as a child of your main window?
Henning
do you close the dialogbox after SalBringWindowToTop?
And: is the dialogbox opened as a child of your main window?
Henning
Re: SalReportView
hei
do you close the dialogbox after SalBringWindowToTop?
no before, but I also tried after
And: is the dialogbox opened as a child of your main window?
as a child, but the function I call is in the main window.
Now I have changed the code so I open the dialog to enter the text needed in the report, then I close the dialog and use a new pb. to print, then all is ok and I will see what the user say about this solution
thanks again
do you close the dialogbox after SalBringWindowToTop?
no before, but I also tried after
And: is the dialogbox opened as a child of your main window?
as a child, but the function I call is in the main window.
Now I have changed the code so I open the dialog to enter the text needed in the report, then I close the dialog and use a new pb. to print, then all is ok and I will see what the user say about this solution
thanks again
Re: SalReportView
Good luck !
Henning
Henning
Who is online
Users browsing this forum: No registered users and 0 guests