Detect which command is running the report - PRINTASPDF vs. PRINTASXML vs. PRINTASXLS - Dynamics NAV 2015

As simple question to more knowing: I have a report that gets run with PRINTASPDF and PRINTASXML

The report includes the company logo as bmp data. This is useless information in XML so is there a way to detect the report is run through PRINTASXML and then let the image out of the file?

Or some additional arguments to the command running the report so that certain fields would be left out?

I ended up fetching the data instructing the codeunit to run either PRINTASPDF or PRINTASXML and bringing this information into the report as well. Then based on this condition the image information was left empty or was being populated.