Click here to Skip to main content
15,895,656 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Writing data from dataset to XML file Pin
Usharva3-Jan-08 16:43
Usharva3-Jan-08 16:43 
GeneralRe: Writing data from dataset to XML file Pin
Volker Weichert4-Jan-08 0:08
Volker Weichert4-Jan-08 0:08 
Generallistview checkbox Pin
lembayung2-Jan-08 17:26
lembayung2-Jan-08 17:26 
GeneralRe: listview checkbox Pin
Michael Sync2-Jan-08 20:22
Michael Sync2-Jan-08 20:22 
GeneralRe: listview checkbox Pin
lembayung2-Jan-08 21:21
lembayung2-Jan-08 21:21 
GeneralRe: listview checkbox Pin
Christian Graus2-Jan-08 22:29
protectorChristian Graus2-Jan-08 22:29 
GeneralRe: listview checkbox Pin
lembayung3-Jan-08 16:17
lembayung3-Jan-08 16:17 
QuestionExcel to oledb dataset Pin
Daakuryu2-Jan-08 16:42
Daakuryu2-Jan-08 16:42 
I'm running into a bit of a snag here;

I'm loading an excel spreadsheet using the following code


Dim Ole_connection As System.Data.OleDb.OleDbConnection
Dim Ole_command As System.Data.OleDb.OleDbDataAdapter
Dim Ole_dataset As New System.Data.DataSet()

Ole_connection = New System.Data.OleDb.OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0;" & _
"data source=" & Str_filename & ";Extended Properties=Excel 8.0;")

Ole_command = New System.Data.OleDb.OleDbDataAdapter("select * from [Sheet1$]", Ole_connection)

Ole_dataset.Clear()
Ole_connection.Open()
Ole_command.Fill(Ole_dataset)
Ole_connection.Close()


I have no control over the data that I receive (the excel spreadsheet)
it's generated by a pbx system at midnight.

The problem is the spreadsheet is not as flat as I was lead to believe, the first sample data I was given was 9 column of data;

in the real version most of the spreadsheet is like that except for the first 7 rows of the spreadsheet which is branding and titles and one or two pieces of info that I do need (dates and a group name)

Is there any way for me to figuratively force the square peg into the round hole? forcing the dataset to be 9 columns large(this is never going to change) and just shoving the 7 first rows of un-flat data wherever it may fall?
GeneralRe: Excel to oledb dataset Pin
ChandraRam2-Jan-08 23:51
ChandraRam2-Jan-08 23:51 
GeneralRe: Excel to oledb dataset Pin
Daakuryu3-Jan-08 15:02
Daakuryu3-Jan-08 15:02 
GeneralRe: Excel to oledb dataset Pin
ChandraRam3-Jan-08 19:49
ChandraRam3-Jan-08 19:49 
GeneralRe: Excel to oledb dataset Pin
Daakuryu7-Jan-08 15:33
Daakuryu7-Jan-08 15:33 
GeneralRe: Excel to oledb dataset Pin
ChandraRam7-Jan-08 18:19
ChandraRam7-Jan-08 18:19 
GeneralRemoving empty elements in array Pin
ExcelMonkey2-Jan-08 12:35
ExcelMonkey2-Jan-08 12:35 
AnswerRe: Removing empty elements in array Pin
Guffa2-Jan-08 21:22
Guffa2-Jan-08 21:22 
GeneralTransfering Items between 2 Listviews Pin
ExcelMonkey2-Jan-08 9:29
ExcelMonkey2-Jan-08 9:29 
GeneralRe: Transfering Items between 2 Listviews Pin
Dave Kreskowiak2-Jan-08 10:39
mveDave Kreskowiak2-Jan-08 10:39 
Generalrecord like in pascal Pin
vykintasv2-Jan-08 8:47
vykintasv2-Jan-08 8:47 
GeneralRe: record like in pascal Pin
Dave Kreskowiak2-Jan-08 9:17
mveDave Kreskowiak2-Jan-08 9:17 
GeneralRe: record like in pascal Pin
vykintasv2-Jan-08 11:18
vykintasv2-Jan-08 11:18 
GeneralRe: record like in pascal Pin
Colin Angus Mackay2-Jan-08 12:41
Colin Angus Mackay2-Jan-08 12:41 
GeneralMy SQl adapter is not behaving normal Pin
Vimalsoft(Pty) Ltd2-Jan-08 3:18
professionalVimalsoft(Pty) Ltd2-Jan-08 3:18 
GeneralRe: My SQl adapter is not behaving normal Pin
Dave Kreskowiak2-Jan-08 5:16
mveDave Kreskowiak2-Jan-08 5:16 
GeneralRe: My SQl adapter is not behaving normal Pin
Vimalsoft(Pty) Ltd2-Jan-08 7:11
professionalVimalsoft(Pty) Ltd2-Jan-08 7:11 
GeneralRe: My SQl adapter is not behaving normal Pin
Dave Kreskowiak2-Jan-08 7:34
mveDave Kreskowiak2-Jan-08 7:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.