oledb - How to select the default worksheet from an excel file -


in case user uploads excel file 1 worksheet, want intelligently use worksheet. however, when pull schema file see unexpected worksheet (circled):

unexpected worksheet in excel schema

the schema retrieved via:

oledbconnection.getschema("tables") 

in case, looks second worksheet filter defined user "peg" 2 columns scrolling.

question: safe me ignore worksheets "$<filter>" appended? put way, if run through worksheets, throwing out "$<filter>" types, , find there 1 left, reasonable default use worksheet? have reference?

thanks!

yes, have thought so. $ means refering named range or macro in workbook. might use regex , capture within ' '.

here reference on how select data named range:

http://msdn.microsoft.com/en-us/library/ms971514.aspx

how u pull schema file? maybe can filter has worksheets ?


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -