public function initexsheet()
{
	const excel_sheet_dll_path = getenv("M_ROOT") & "\\arch\\ExcelSheet.dll";
	
	# load dll
	load_dll (excel_sheet_dll_path);
	
	generator_add_category("Excel Sheet");
	generator_add_function("set_excel_sheet","This function set the active excel sheet in the given excel file.",2,"File Name (.xls): ","browse()","", "Work Sheet : ","type_edit","\"\"");
	generator_add_function_to_category("Excel Sheet","set_excel_sheet");
}

extern int SetExcelSheet ( in string<1024>, in string<1024> );

public function set_excel_sheet ( excel_filename, excel_sheetname )
{
	auto rc;
	rc = SetExcelSheet ( excel_filename, excel_sheetname );
	return rc;

# Error codes	
# 	-1	Couldn't Open Excel Application
# 	-2	File not found
# 	-4	UnExpected Error
# 	-3	Sheet not found

}
