When i click "write" button it open Excel file with workbook and writing on cells without problem. I tried on two computer which have Excel 2007 and 2013 it works correctly.
But another pc which is have Excel 2007, it just start excel only with blank screen(no worksheet) and doesnt start writing on cells.
Here is my code
class CreateExcelDoc
{
private Excel.Application app = null;
private Excel.Workbook workbook = null;
private Excel.Worksheet worksheet = null;
private Excel.Range workSheet_range = null;
public CreateExcelDoc()
{
createDoc();
}
public void createDoc()
{
System.Globalization.CultureInfo oldCI = System.Threading.Thread.CurrentThread.CurrentCulture;
app = new Excel.Application();
app.Visible = true;
workbook = app.Workbooks.Add(1);
worksheet = (Excel.Worksheet)workbook.Sheets[1];
}