C# – Export to Excel from Crystal Reports without page headers/footers

ccrystal-reports

Just wondering if anybody had working code example (in c#) for exporting a crystal report to Excel from a .NET application without the report's page headers and footer's.

I am using crystal reports v9 runtime.

Best Answer

To accomplish this you actually need to do it in the Crystal Report. My recommendation is to add a parameter to it, and then edit the header and footer suppress formulas to check the parameter. That was how we accomplished it. If there is way to do it from your code I would be interested in knowing it also.

Good luck!