This may or may not be an Aspose problem - perhaps someone has run into it previously?
This is the code I am running:
Dim db As New Hot_DB
Dim dr As SqlDataReader = db.HOT_Email(Int32.Parse(Me.txtnewitem.Text))
If dr.HasRows Then
Dim dt As New DataTable("gm")
Dim designer As WorkbookDesigner = New WorkbookDesigner()
It works great... except the first column of the DR never appears. If I change the order clause in the stored proc called by db.HOT_Email, I can confirm that it is ALWAYS the first record that does not appear.
When I step through the code in the debugger after the Load line, dt.Rows.count = '&H2' ... does that mean it has 3 rows or two? When I call the stored proc in Query Analyzer using the same Int value there are always 3 records.
I don't understand where I am losing the first record. Is it in the FILL command? is it my sheet - it is a basic fill and go spreadsheet - nothing fancy. All Fields are formatted correctly with valid field names, such as &=gm.so1
Any uggestions would be greatly appreciated! Thanks in advance,
Merle Norman Cosmetics
Los Angeles, CA