Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
Help with Excel Orientation of sheet
posted

I am having trouble setting up a sheet's orentation here is what I am trying to do:

var workbook = new $.ig.excel.Workbook($.ig.excel.WorkbookFormat.excel2007);
var sheet = workbook.worksheets().add('Rents');
sheet.Orientation('landscape');

 am just not getting this

Parents
No Data
Reply
  • 9190
    Verified Answer
    Offline posted

    Hi Landrum Randolph,

    Thank you for posting on our forums.

    I recommend using the Orientation property to set the orientation for each page of the printed worksheet. An example of the code can be found below:
    worksheet1.PrintOptions.Orientation = Infragistics.Excel.Orientation.Landscape;

    Please let me know if you have any questions regarding this matter.

Children
No Data