I have a report that is way larger than I think it should be. It's a basic invoice for an order but it's around 20MB. I need to have several different versions of this invoice so this is causing my FE to be huge and run slow.
It's got about 9 calculated controls (with lots of IIF situations that apply) on it and the reason why I'm not running the calculations in the underlying query is because these calculations rely on whether or not the embedded subreport .hasdata.
So for example, if an order has add-ons (from a table on the many side), the report needs to calculate that subtotal and then calculate things like adding sales tax (IF it's a taxable order), processing fees (IF it's a certain type of order) etc etc.
Could this be reason why the report is so large? Is there a better way to do these calculations? I *think* I've ruled out corruption. I recreated the report by copying and pasting the controls into a new report but it's still huge. Did I copy the corruption over? I have a form that runs these calculations as well and it's also pretty large (around 24 MB) so that also makes me think it's not corruption.