The best way to do this is by mirroring your filter criteria to the query that generates the result table for the report. Then open the report. If you've hidden the toolbar, you may want unhide it so the user can then print the report.
I just noticed from an earlier post of yours that you probably don't have the filter variable. In this case use getgenfilter in the form.
var
r report
criteria dynarray[] anytype
endvar
; capture the filter criteria
-tableframeobject-.getgenfilter(criteria)
; the rest is the same
r.load(-reportname-, winstylehidden)
r. -tableframename- .setgenfilter(criteria)
r.run()
r.bringtotop()
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.