Create Excel Sheet using C#2.0 - Windows Application

From: Samir Dorle
Subject: Create Excel Sheet using C#2.0 - Windows Application
Date: Thu, 10 Apr 2008 00:27:01 -0700
Hi,

Previously I wrongly posted my question in another discussion group.

I'm creating an Windows Application using C#2.0.

In the application I'm going to create the EXCEL SHEET and saving it on
C:\test.xls.

I created it but at the time of saving the sheet it gives me compiler error.
I used following command to save the excel sheet..
XlWBObj.SaveAs(.........) this is the property of the Excelsheet Workbook
object.
Let me know how can I pass the parameter to this property.

Note: I don't want to display the file dialogue box to save or open the
file. I want this newly created file should be stored automatically to the
specified path.
If file is already present then it should prompt for the Overwrite the
existing file.

Regards,
Samir