Excelapplication myexcel = new excelapplication (); ?? //myexcel.visible = true;
?? string _templatefile = Application.startuppath @ "/ modules / excelaxport / template /" mydataview.table.tablename ".xlt";
?? if (system.io.file.exists (_templatefile)) ?? {??? myexcel.workbooks.open (_templatefile, missing.value, miss, miss, miss, missing.value, missing.Value, missing . Value, missing.value, missing.value, missing.value, missing.value, missing.value, missing.value; ??} ?? else {??? myexcel.workbooks. Add (missing.value); ??} ?? Worksheet myworksheet = (worksheet) myexcel.activesheet;