I am converting excel sheets to html files. in some cases there are phonetics added in some columns, i don't want them in converted html file. how can remove these phonetics while converting...? Is there any way i can turn off phonetics programmatically..? here the code i am using
xApp = new Microsoft.Office.Interop.Excel.Application();
object missing = Type.Missing;
object trueObject = true;
xApp.Visible = false;
xApp.DisplayAlerts = false;
xWorkBook = xApp.Workbooks.Open(ExcelFilePath, missing, trueObject, missing, missing, missing,
missing, missing, missing, missing, missing, missing, missing, missing, missing);
object format = Microsoft.Office.Interop.Excel.XlFileFormat.xlHtml;
ConveredFilesPath = Path.Combine(outputDirTemp, ExcelFileName);
string tempFileName = ConveredFilesPath + ".html";
xWorkBook.SaveAs(tempFileName, format, missing, missing, missing, missing,
Microsoft.Office.Interop.Excel.XlSaveAsAccessMode.xlNoChange,
missing, missing, missing, missing, missing);
if(Directory.Exists(ConveredFilesPath+".files"))
ConveredFilesPath += ".files";
else
ConveredFilesPath += "_files";
for (int count = 1; count < xWorkBook.Sheets.Count + 1; count++)
{
processDetils.AddFileInfo((count).ToString(), ((Microsoft.Office.Interop.Excel.Worksheet)xWorkBook.Sheets.get_Item(count)).Name);
}
CloseExcelObject(ref xWorkBook, ref xApp);
Is there any way i can set phonetics Turned off
in Excel Object?
Here is the picture of demo excel file the bold characters are phonetics
Here you can clearly see some cells have phonetics on top but same don't..