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
90
Page setup excel worksheet before exporting
posted
Hello, I am using the export to excel feature from the ultrawebgrid in ASP.NET. Is it possible to perform the page setup (eg: Print Page to A4 size or so) for the excel sheet which we are exporting. Regards, Sujeeth Bosch, India
Parents
No Data
Reply
  • 4960
    Verified Answer
    posted

    Yes, in the latest version of NetAdvantage for ASP.NET you can access the PaperSize on your Infragistics.Excel.Worksheet.PrintOptions object:

    Dim worksheet As Worksheet = workbook.ActiveWorksheet
    worksheet.PrintOptions.PaperSize = PaperSize.A4

     

Children
No Data