Hi,
In the process of evaluating Aspose I came across a functionality to export infragistics grid to excel, PDF and CSV.
I am using evaluation version of Aspose. Runtime Version “v2.0.50727”, Version 8.1.0.0.
I am not able to see the “ImportGridView” function.
I am trying to use the below lines
worksheet.Cells.ImportGridView (dataGrid, 0, 0, false);
Please suggest.
Hi,
The link explains the use of below code for the export operation (WPF application)
worksheet.Cells.ImportGridView (dataGrid, 0, 0, false);
However, I am not able to find the function named “ImportGridView” in “Aspose.Cells.dll” version 8.1.0.0 and release version
v2.0.50727
I get below compile error
’Aspose.Cells.Cells’ does not contain a definition for ‘ImportGridView’ and no extension method ‘ImportGridView’ accepting a first argument of type ‘Aspose.Cells.Cells’ could be found (are you missing a using directive or an assembly reference?)
Please suggest.
Hi,
Hi,
Below is the sample WPF code
Aspose.xaml
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation
"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml
"
xmlns:igDP="http://infragistics.com/DataPresenter
" x:Class=“AsposeImplementation.MainWindow”
Title=“Aspose” Height=“350” Width=“525”>
<igDP:XamDataGrid Name=“shareClassBasicInfoGrid” HorizontalAlignment=“Left” Margin=“107,189,0,0” VerticalAlignment=“Top”/>
Aspose.xaml.cs
private void PopulateGrid()
{
//Logic to get data from DB and populate the grid.
}
private void csvGridExtract_Click(object sender, RoutedEventArgs e)
{
var book = new Workbook();
var worksheet = book.Worksheets[0];
///book.Save(“GridOutput.csv”, SaveFormat.CSV);
// book.Save(“GridOutput.csv”, SaveFormat.CSV);
// worksheet.Cells.ImportGridView (dataGrid, 0, 0, false);
}
Hi,
Hi Amjad,
Thanks for replying to the post and helping me solve the issues encountered.
There seems to be a bit of confusion here.
The problem that I am trying to solve here is that I am not able to find the function named “ImportGridView” in the “Aspose.Cells.dll” downloaded. Version details – version 8.1.0.0 and release version
v2.0.50727
I get a compile error stating
‘Aspose.Cells.Cells’
does not contain a definition for ‘ImportGridView’ and no extension
method ‘ImportGridView’ accepting a first argument of type
‘Aspose.Cells.Cells’ could be found (are you missing a using directive
or an assembly reference?)"
Incase I get this function in the dll I will be able to import WPF grid to excel or PDF.
However, I am not able to find the function in the dll downloaded.
Aspose.Cells.zip
Request you to please suggest.
Hi,