Skip to content

CReating an Excel spreadsheet File without opening Excel

Mark Slater

Asked May 20, 2008, 12:40 AM EDT1 answer
Share
LinkedInX

I've read a couple of articles about using C# to open and read an Excel spreadsheet by opening a spreadsheet via the code. Is there a way of writing a Excel file without having to open the spreadsheet.

We have a requirement to read a set of data from a database, put this into an excel spreadsheet so that the data can be used our Marketing department. The database sits at our external hosting site and the current process is to create a comma delimited file, import it into Excel, format and save. All a bit clunky and MANUAL!

I would like to set up a scheduled process, that can run automomously, as abackground process without opening an Excel form. Can this be done?

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Bechir Bejaoui
    0
    Of corse, use the BackGroundWorker to do this if you already are in context of application  windows or web  but  to  do this  you can also add a windows service into your project and program it so that it fits your needs
    0