I want to pour my excel sheet data into a templated excel sheet
I want to pour my excel sheet data into a templated excel sheet. i have a templete for good desiging now i want to pour my data in that template
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Jiteendra SampathiraoRank #586 · 4.1K pointsPosted Jul 27, 2011, 11:03 PM EDT
write this:
In class file....
public void SaveAs(string strFileName)
{
object missing = System.Reflection.Missing.Value;
object fileName = strFileName;
oDoc.SaveAs(fileName, missing, missing, missing, missing, missing, missing, missing, missing, missing,
missing);
}
in code behind page...
test.Saveas(filepath + "tempfilenamewitjfileextension");
Here test means object instance of Class file.....
oDoc means object instance of Excel Document....
1 short reply
vipin saini63 pointsPosted Jul 27, 2011, 11:51 PM EDT