T
Tim Owers
The following VB6 code returns error Method 'Import' of object
'ISimpleImporter' failed...
_______________________________________________________
Sub OneNote_ImportXML()
Dim strFileName As String
Dim strImportXml As String
Dim objOneNote As OneNote.CSimpleImporter
CommonDialog1.Filter = "XML files (*.XML)|*.XML|Text files (*.TXT)|*.TXT"
CommonDialog1.ShowOpen
strFileName = CommonDialog1.FileName
Set objOneNote = New OneNote.CSimpleImporter
Open (strFileName) For Input As #1
strImportXml = Input(LOF(1), #1)
Close #1
objOneNote.Import strImportXml ' generates a Method 'Import' of object
'ISimpleImporter' failed here
End Sub
_______________________________________________________
Any ideas as to why this fails?
'ISimpleImporter' failed...
_______________________________________________________
Sub OneNote_ImportXML()
Dim strFileName As String
Dim strImportXml As String
Dim objOneNote As OneNote.CSimpleImporter
CommonDialog1.Filter = "XML files (*.XML)|*.XML|Text files (*.TXT)|*.TXT"
CommonDialog1.ShowOpen
strFileName = CommonDialog1.FileName
Set objOneNote = New OneNote.CSimpleImporter
Open (strFileName) For Input As #1
strImportXml = Input(LOF(1), #1)
Close #1
objOneNote.Import strImportXml ' generates a Method 'Import' of object
'ISimpleImporter' failed here
End Sub
_______________________________________________________
Any ideas as to why this fails?