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?

Related
Recommended