Click here to Skip to main content
15,885,707 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to embed Excel in web browser in vb .net Pin
Eddy Vluggen16-Jan-17 2:31
professionalEddy Vluggen16-Jan-17 2:31 
QuestionMessage Closed Pin
15-Jan-17 4:41
Live for Coding15-Jan-17 4:41 
AnswerRe: How to get JSON data into array Pin
Richard MacCutchan15-Jan-17 22:59
mveRichard MacCutchan15-Jan-17 22:59 
QuestionExcel open as ADODB.Connection Pin
hansoctantan12-Jan-17 2:24
professionalhansoctantan12-Jan-17 2:24 
AnswerRe: Excel open as ADODB.Connection Pin
Dave Kreskowiak12-Jan-17 2:45
mveDave Kreskowiak12-Jan-17 2:45 
GeneralRe: Excel open as ADODB.Connection Pin
hansoctantan12-Jan-17 2:57
professionalhansoctantan12-Jan-17 2:57 
GeneralRe: Excel open as ADODB.Connection Pin
Dave Kreskowiak12-Jan-17 6:33
mveDave Kreskowiak12-Jan-17 6:33 
GeneralRe: Excel open as ADODB.Connection Pin
hansoctantan13-Jan-17 2:24
professionalhansoctantan13-Jan-17 2:24 
Ok so I have a spreadsheet which has a .xlsx extension and downloaded this on a FTP site. As I search in the internet you need to use this connection string for .xlsx files using ADODB.
VB
conn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & path & ";Extended Properties=Excel 12.0;"
But this gives error on conn.Open, this is the error External table is not in the expected format..

When I manually open the spreadsheet on MS Office Excel then save it, I can successfully connect to said spreadsheet.

Note: On my machine I have office installed but on the machines where my program will be deployed don't so I need to use ADODB to read the contents.
- Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.
- Most of the problem in your life are due to two reasons: you act without thinking, or think without acting.

GeneralRe: Excel open as ADODB.Connection Pin
Eddy Vluggen13-Jan-17 2:51
professionalEddy Vluggen13-Jan-17 2:51 
GeneralRe: Excel open as ADODB.Connection Pin
hansoctantan13-Jan-17 3:01
professionalhansoctantan13-Jan-17 3:01 
GeneralRe: Excel open as ADODB.Connection Pin
Eddy Vluggen13-Jan-17 3:21
professionalEddy Vluggen13-Jan-17 3:21 
GeneralRe: Excel open as ADODB.Connection Pin
Dave Kreskowiak13-Jan-17 5:04
mveDave Kreskowiak13-Jan-17 5:04 
GeneralRe: Excel open as ADODB.Connection Pin
hansoctantan17-Jan-17 3:31
professionalhansoctantan17-Jan-17 3:31 
QuestionLosing lines when writing to RichTextBox Pin
jkirkerx6-Jan-17 11:25
professionaljkirkerx6-Jan-17 11:25 
AnswerRe: Losing lines when writing to RichTextBox Pin
Eddy Vluggen8-Jan-17 2:58
professionalEddy Vluggen8-Jan-17 2:58 
GeneralRe: Losing lines when writing to RichTextBox Pin
jkirkerx9-Jan-17 7:22
professionaljkirkerx9-Jan-17 7:22 
AnswerRe: Losing lines when writing to RichTextBox [Solved] Pin
jkirkerx9-Jan-17 8:29
professionaljkirkerx9-Jan-17 8:29 
QuestionLosing Linefeeds when writing text from RichTextBox Pin
jkirkerx6-Jan-17 8:24
professionaljkirkerx6-Jan-17 8:24 
AnswerRe: Losing Linefeeds when writing text from RichTextBox [solved] Pin
jkirkerx6-Jan-17 9:45
professionaljkirkerx6-Jan-17 9:45 
QuestionPaste Action on ContextMenu using RichTextBox Pin
jkirkerx6-Jan-17 7:26
professionaljkirkerx6-Jan-17 7:26 
QuestionVisual Basic Pin
DrBones695-Jan-17 16:21
professionalDrBones695-Jan-17 16:21 
AnswerRe: Visual Basic Pin
Peter_in_27805-Jan-17 18:07
professionalPeter_in_27805-Jan-17 18:07 
GeneralRe: Visual Basic Pin
DrBones6928-Jan-17 21:04
professionalDrBones6928-Jan-17 21:04 
AnswerRe: Visual Basic Pin
NEBIRE15-Jan-17 9:31
NEBIRE15-Jan-17 9:31 
GeneralRe: Visual Basic Pin
DrBones6928-Jan-17 21:06
professionalDrBones6928-Jan-17 21:06 

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.