SalReportView

Discussion forum about all things Report Builder (all versions).
kjellv
Norway
Posts: 84
Joined: 05 Sep 2018, 07:12
Location: sandefjord/Norway

SalReportView

Post by kjellv » 11 Jan 2017, 09:35

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

User avatar
H3PO4
Germany
Posts: 241
Joined: 10 Mar 2017, 07:53
Location: Rohlstorf, Germany

Re: SalReportView

Post by H3PO4 » 11 Jan 2017, 09:57

Hi kjellvang,

you could try hWndReport when calling SalBringWindowToTop:
Set hWndReport = SalReportView ( hWndForm,hReport, strReportFile,strReportBinds, strReportInputs, nError )
Call SalBringWindowToTop( hWndReport )

Regards
Henning

kjellv
Norway
Posts: 84
Joined: 05 Sep 2018, 07:12
Location: sandefjord/Norway

Re: SalReportView

Post by kjellv » 11 Jan 2017, 10:32

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

User avatar
H3PO4
Germany
Posts: 241
Joined: 10 Mar 2017, 07:53
Location: Rohlstorf, Germany

Re: SalReportView

Post by H3PO4 » 11 Jan 2017, 10:40

Hi,

do you close the dialogbox after SalBringWindowToTop?
And: is the dialogbox opened as a child of your main window?

Henning

kjellv
Norway
Posts: 84
Joined: 05 Sep 2018, 07:12
Location: sandefjord/Norway

Re: SalReportView

Post by kjellv » 11 Jan 2017, 13:18

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

User avatar
H3PO4
Germany
Posts: 241
Joined: 10 Mar 2017, 07:53
Location: Rohlstorf, Germany

Re: SalReportView

Post by H3PO4 » 12 Jan 2017, 06:32

Good luck :-)!

Henning

Return to “General Discussion Report Builder”

Who is online

Users browsing this forum: No registered users and 0 guests