I am creating an application using Microsoft.Office.Interop framework (C#) for Excel. And the issue that I am trying to figure out is whether or not I can somehow attach an existing excel file with a format template to the application?

In other words, is there a way to use a relative path to an .xls file located in the root directory? Or is it possible to somehow embed the .xls file in the .exe? Or will my only solution be to have the user search for and load the .xls file as a function on the form?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.