Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Created Unassigned: Variable Datatype [9341]

$
0
0
I am using vb.net as my language and I am having a difficulty determining the correct datatype for some of the examples given, especially the variable for data with ranges. From what I am seeing is that the declaration of the example is just var <variablename>, I am trying to insert data table starting from a specific cell..using the code

rangewithdata = worksheet.Cell(9, 1).InsertTable(ds.Tables(0).AsEnumerable)

from these two topic
https://closedxml.codeplex.com/wikipage?title=Inserting%20Data&referringTitle=Documentation
https://closedxml.codeplex.com/wikipage?title=Inserting%20Tables&referringTitle=Documentation

I want to use insertData but I can't that is why I am trying to use insertTable but still can't it gives me this error

Unable to cast object of type 'ClosedXML.Excel.XLTable' to type 'ClosedXML.Excel.IXLRanges'.

I declare rangewithdata as IXLRanges as to I really don't know what would be the datatype of it in vb.net, hope someone helps me with this..



Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>