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
405
ultra win grid export to excel - export to more than one sheet in excel
posted

hi

i have win form with 3 tabs. each tab has ultra win grid.

i want to export the 3 grids from the 3 tabs to the same excel file, each grid in new sheet of excel.

how can i do this? i searched in the net and didnt find an answer.

Thanks, Michal

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi Michal,

    There's not much to it, it's pretty easy.

    What you do is declare a Workbook in code. You can use the workbook.Worksheets.Add method to add worksheets to it. Then you call the Export method on the UltraGridExcelExporter and pass in the Worksheet you want to export to. When, after all three grids are exported, you call workbook.Save to save it to a file.

Children