I am trying to find a way to export my igGrid to excel, pdf, etc. I have found some examples, but they are all for MVC, I am using asp.net. Any suggestions on how to get that done. I would like the grid to be exported as is with the same formatting as my grid. The datasource of the grid is json.
Thanks,
Saevar
Hi Patrick,
Thank you for your reply.
To answer your question, yes, you should be able to use the above approach to fill and save your workbook to a file.
Please let me know if you have any further questions.
Thank you for your prompt rely. I looked at the information on creating excel spreadsheets but cannot find full examples I need.
How do I add/reference Infragistics Excel Engine in a ASP?
Can I use the following VBA code in ASP and fill the sheet by set the value of each cells?
' Create a workbook and set its format to Excel2007Template Dim newWorkBook As Infragistics.Documents.Excel.Workbook = New Workbook(WorkbookFormat.Excel2007Template) ' Add a worksheet to the workbook Dim worksheet1 As Infragistics.Documents.Excel.Worksheet = newWorkBook.Worksheets.Add("Sheet1") ' Set the value of one of the cells worksheet2.Rows.Item(0).Cells.Item(0).Value = 14.56 ' Save the workbook newWorkBook.Save("C:\ExcelBookTemplate.xltx")
' Create a workbook and set its format to Excel2007Template
Dim
As
New
' Add a worksheet to the workbook
"Sheet1"
' Set the value of one of the cells worksheet2.Rows.Item(0).Cells.Item(0).Value = 14.56
' Set the value of one of the cells
' Save the workbook
"C:\ExcelBookTemplate.xltx"
Patrick
Hi bcsite,
Thank you for posting in the community.
As I have mentioned above, the igGrid does not currently have its own exporter. Therefore I suggest that you use the Infragistics Excel and Document engines in order to export your data directly. More information on creating excel spreadsheets and reports using these can be found at:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=DocumentEngine_Writing_Reports.html
http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=ExcelEngine_Using_the_Infragistics_Excel_Engine.html
Please let me know if you have any questions.
Hi Peter,
Due to project requirement, I am using ASP. I am also trying to find a way to export my igGrid to excel, pdf, etc. Any suggestions on how to get that done? I am searching online documents but cannot find any examples. Thanks
your reply helped me. i will just do it based on a data source. I did post another question in regards to adding images and links to the grids.
http://forums.infragistics.com/forums/p/64385/325828.aspx#325828
thanks
Sy