Skip to content

I want to pour my excel sheet data into a templated excel sheet

vipin saini

Asked Jul 27, 2011, 10:45 PM EDT2 answers
Share
LinkedInX
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 Sampathirao
    0
    hi,
    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....
    0
  • 1 short reply
    • 0
      can you give real example
      0