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
1825
Exporting ?
posted
I have a Excel report/doc that has 3 tabs.
Each tab has a different set of Columns.
 
1] How could I dislpay this data in a grid.
        Would I need to setup a tab control with 3 different wingrids.
        Or is the grid got some tab controls built in.
 
2] How could I export the data to the same excel doc with 3 different tabs in the doc?
 
Note! i already know how to display one set of data on the grid and how to export that to an excel doc.
Its the multi-tab thing I am wondering on.
 
Thanks.
Deasun
USA,NJ
Parents
  • 470
    Offline posted

    I have done what you have described. I used 3 separate grids on a tab control. The grid itself does not have a tab funtion to it.

    When exporting you would just pick the worksheet in the workbook you are exporting to. Something like this:

    Dim objExcelWorkBook As Workbook = New Workbook

    objExcelWorkBook.add("Worksheet1")

    objExcelWorkBook.add("Worksheet2")

    objExcelWorkBook.add("Worksheet3")

    UltraGridExcelExporter.Export(ultragrid1, objExcelWorkBook.Worksheets(
    "Worksheet1"), 0, 0)

    UltraGridExcelExporter.Export(ultragrid2, objExcelWorkBook.Worksheets("Worksheet2"), 0, 0)

    UltraGridExcelExporter.Export(ultragrid3, objExcelWorkBook.Worksheets("Worksheet3"), 0, 0)

    I hope this helps

Reply Children