Import using interop DLLs program

Hi ALL,

I have imported the Invoice record in Sage 50 US using interop dll program, But it is not returning GUID is. Can any one help me to get the working?

string path = System.Windows.Forms.Application.StartupPath;
string FileNameXML;
string[] gUIDs = new string[1];

FileNameXML = path + @"\Invoice.xml";
// save the xml to file
StreamWriter sw = new StreamWriter(FileNameXML);
sw.Write(xml);
sw.Close();
//create import object
Console.WriteLine("Import");

Import import = (Import)appObj.CreateImporter(PeachwIEObj.peachwIEObjJobList);
import.ClearImportFieldList();
Console.WriteLine("Import End");
//set import file type
Console.WriteLine("Import XML");
import.SetFileType(PeachwIEFileType.peachwIEFileTypeXML);
import.SetFilename(FileNameXML);
Console.WriteLine("Import XMLend");
//if import was successfull, it will return the guid of imported Job

import.ImportAndReturnGUIDs(out gUIDs);
return gUIDs;

Here is the code I used for import into Sage.

Thanks in advance.

SF