SAVEASEXCEL function in report

Hi All,

I want a small help in SAVEASEXCEL function of report.

I want to save preview of a report at specified location, for that I wrote OnPostReport

REPORT.SAVEASEXCEL(12345,‘D:\TEST’+FORMAT(‘Customer’)+’.xls’,Customer);

File is saving at given location but data is different in preview & excel file.

I think filters are not applying to report while using SAVEASEXCEL function.

Any idea?

Thanks in Advance!