cross company not working as expected...

Hello all. I am currently modifying a report to work with all companies. (PurchRanking report) I have set the allowcrosscompany property to “Yes” in the static query on the report but data for all companies is being returned regardless of the companies that are selected on the “Company Range” tab. The only way I have been able to get this to work is to create a dynamic query in the fetch method and add the selected companies from the static query to my dynamic query and then pass this query to the report class. Once I do this though, I loose all other user defined Range functionality.

Hase anyone had any similar experience with cross company queries? Any advice/help would be greatly apprciated.