I have a MS Excel VF Page that perfectly downloads data. Now in main VF Page I am having a remote action static method called using vf remoting from button on main page.
From that method I need to call the Excel VF Page. Unfortunately, currently it is failing as I see MS Excel VF Page is not getting downloaded from main page.
Can someone please help me here?
static @RemoteAction method as below, I am trying it.
@RemoteAction
public static PageReference XXX(String ABC,String Period,String conditions,string type,String Email) {
....
ApexPages.PageReference report = new ApexPages.PageReference('/apex/CPATAllBusinessPlanEmail?Conditions=' + conditions + '&ABC=' + ABC+ '&Period=' + Period+ '&Type=' + type);
report.setRedirect(true);
return report;
}