S
sh_web
Unregistered / Unconfirmed
GUEST, unregistred user!
我采用ADO组件访问Excel文件。
ADODataset1的ConnectString=Provider=MSDASQL.1;Persist Security Info=False;Data Source=Excel Files;Extended Properties=Excel 8.0;Initial Catalog=g:/classmates.xls
ConnectText=Select Name from [students] where Number=122
DataSourse1的Dataset属性设置为ADODataSet1
设置DBText1的DataSource属性为DataSource1,设置DataField为Name
在将ADODataset1的Active设为True后,DBText1的内容能正常地显示为John
但在Run时,显示如下Exception Notification:
debubber Exception Notification
Project Project1.exe raised exception class EOleException with message ' 操作被取消'.Process stopped.Use Step or Run to continue.
运行step over后,Degugger Exception Notification
Project Project1.exe raised exception class EStackOverflo with message 'Stack overflow'.Process Stopped.Use Step or Run to continue.
ADODataset1的ConnectString=Provider=MSDASQL.1;Persist Security Info=False;Data Source=Excel Files;Extended Properties=Excel 8.0;Initial Catalog=g:/classmates.xls
ConnectText=Select Name from [students] where Number=122
DataSourse1的Dataset属性设置为ADODataSet1
设置DBText1的DataSource属性为DataSource1,设置DataField为Name
在将ADODataset1的Active设为True后,DBText1的内容能正常地显示为John
但在Run时,显示如下Exception Notification:
debubber Exception Notification
Project Project1.exe raised exception class EOleException with message ' 操作被取消'.Process stopped.Use Step or Run to continue.
运行step over后,Degugger Exception Notification
Project Project1.exe raised exception class EStackOverflo with message 'Stack overflow'.Process Stopped.Use Step or Run to continue.