Embed object in Excel programmatically
问题 I've tried several libraries, including EPPlus, NPOI and they can insert images, but i couldn't find how to insert objects( pdf's, text files, images ) as files . Is there any way or library to do that in .NET? Thanks! 回答1: Using this code I was able to embed a PDF file, a txt file , and a png file into Excel using C#. public static class ExcelReaderFunctions { public static void ExcelInsertOLE(string path) { Microsoft.Office.Interop.Excel.Application excel = new Application(); excel