Hi team,
I am using below code to export to excel.. with version 2008.3.1125.35
grdData.Rebind();
grdData.ExportSettings.IgnorePaging = true;
grdData.ExportSettings.FileName = "KIPReport";
grdData.ExportSettings.ExportOnlyData = true;
grdData.MasterTableView.ExportToExcel();
there is a warning message with the name of aspx page as below
---------------------------
Microsoft Office Excel
---------------------------
The file you are trying to open, 'Results.aspx', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?
---------------------------
Yes No
---------------------------
is there any way i can get rid of this message .. if not at least it should give the file name i specified in the code
Thanks
-Krishna
I am using below code to export to excel.. with version 2008.3.1125.35
grdData.Rebind();
grdData.ExportSettings.IgnorePaging = true;
grdData.ExportSettings.FileName = "KIPReport";
grdData.ExportSettings.ExportOnlyData = true;
grdData.MasterTableView.ExportToExcel();
there is a warning message with the name of aspx page as below
---------------------------
Microsoft Office Excel
---------------------------
The file you are trying to open, 'Results.aspx', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?
---------------------------
Yes No
---------------------------
is there any way i can get rid of this message .. if not at least it should give the file name i specified in the code
Thanks
-Krishna