Home > database >  Excel import pb
Excel import pb

Time:09-21

I use PB will excel import database, using the OLE and in the global variable declaration oleobject excelserver, but the problem when running
Error: null object reference at line 3 in the selectionchanged event of object ddlb_sheet of w_excel
Why is that? Who can answer? Thank you very much!

CodePudding user response:

 
Oleobject excelserver
Excelserver=create oleobject object creation//?
Excelok=excelserver. Connecttonewobject (" excel. Application ")

If it is imported into the DW, and saved to the database, you can also use ImportFile function import

String null_str
SetNull (null_str)
Ll_rtn=dw_detail. ImportFile (null_str)

CodePudding user response:

A null object reference at line 3 in the selectionchanged event of object ddlb_sheet of w_excel


W_excel window drop-down list control ddlb_sheet selectionchanged events have a problem

CodePudding user response:

Object has been created, the selectionchanged event ddlb_sheet what's the problem?
  • Related