var dataToLoadInExcel = new List<BsonDocument>();
foreach (var data in dataList)
{
var item = new BsonDocument();
var source = "firstname";
var columnName = "firstname";
var dbColumnName = "firstname";
var columnValue = "SampleUser1";
item.Add(dbColumnName, columnValue);
dataToLoadInExcel.Add(item);
}
This is how im preparing the data (list of bson document)
@Amrinder_Singh
Your sample code contains many variables that have not been assigned values. We are unable to use sample code for testing and locating issues. If you could provide a simple and executable console project, it would be very helpful for us to locate the issue.
@Amrinder_Singh
When calling a method, the parameters passed into the GetExcelWithData method are still unknown. Would you like to provide a runnable program that includes all variables with assigned values? We will check it soon.
It is nice to know that your issue is resolved. Please feel free to write us back if you have further queries or comments, we will be happy to assist you soon.
@Amrinder_Singh
Thank you for your interest in Aspose.Cells and Words products. I am moving your post to the Aspose.Words Product Family forum for our support staff to help with any technical or functionality related questions you may have.