G
Guest
I would appreciate if some one could help me out with this problem.
I am trying to export the datagrid to an excel file in ASP.NET.
The functionality works fine.
But I would like to setup the excel file in a landscape oriented format with
predefined margins.
Aftre going through the internet, I found articles which are saying about
setting the styles for @page which should resolve the problem. But I am not
sure where should I place the style of @page. Event if I set it up for a
page, the excel file which opens, comes with its predefined margins and
orientation.
Can some body tell me -
How do add headers specific to excel landscape orientation to the Response
from ASP.NET?
If this is not possible how should I approach this problem. As I am not able
to find the exact place where my own @page style should go.
Any help would be appreciated.
Thanks,
Dinoo
I am trying to export the datagrid to an excel file in ASP.NET.
The functionality works fine.
But I would like to setup the excel file in a landscape oriented format with
predefined margins.
Aftre going through the internet, I found articles which are saying about
setting the styles for @page which should resolve the problem. But I am not
sure where should I place the style of @page. Event if I set it up for a
page, the excel file which opens, comes with its predefined margins and
orientation.
Can some body tell me -
How do add headers specific to excel landscape orientation to the Response
from ASP.NET?
If this is not possible how should I approach this problem. As I am not able
to find the exact place where my own @page style should go.
Any help would be appreciated.
Thanks,
Dinoo