


To use upper method, you just need to place the file name in the second parameter. You need to create a storage account and put your azure storage connection string in following placeĬloudStorageAccount storageAccount = CloudStorageAccount.Parse("put your azure storage connection string here") ĬloudBlobClient blobClient = storageAccount.CreateCloudBlobClient() ĬloudBlobContainer container = blobClient.GetContainerReference("excelfilecontainer") ĬloudBlockBlob blockBlob = container.GetBlockBlobReference(fileName) Using (SpreadsheetDocument document = SpreadsheetDocument.Create(ms, SpreadsheetDocumentType.Workbook)) public static bool CreateExcelDocument(DataSet ds, string fileName) After wrote data to this excel file, we can upload the memory stream to Blob Storage. Based on your code, you could create a new excel which hosted in memory stream. In Azure, I suggest save the excel file to Azure Blob Storage. In above code, What I need to pass "excelFilename"?
