Hi, thanks for the response. I am using the version that comes with visual studio 2005, I think a scaled down version of 10. Also I have the following code and checked with a break point to make sure it was executing but it does not seem to make a difference on the excel exported file. I check the export type and if excel then set the excelformatoptions. I put the page start and end as 2,3 just to test but the output report still has 40+ pages.
if (format == ExportFormatType.Excel)
{
ExcelFormatOptions excelformat = new ExcelFormatOptions();
excelformat.ExcelUseConstantColumnWidth = true ;
excelformat.ExcelConstantColumnWidth = 20;
excelformat.ExcelTabHasColumnHeadings = false;
excelformat.LastPageNumber = 2;
excelformat.FirstPageNumber = 3;
excelformat.UsePageRange = true;
document.ExportOptions.ExportFormatOptions = excelformat;
}