// Generates content of spreadsheetPrinterSettingsPart1. private void GenerateSpreadsheetPrinterSettingsPart1Content(SpreadsheetPrinterSettingsPart spreadsheetPrinterSettingsPart1) { System.IO.Stream data = GetBinaryDataStream(spreadsheetPrinterSettingsPart1Data); spreadsheetPrinterSettingsPart1.FeedData(data); data.Close(); }
private void generateSpreadsheetPrinterSettingsPartContent(SpreadsheetPrinterSettingsPart spreadsheetPrinterSettingsPart) { using (var binaryDataStream = new MemoryStream(Convert.FromBase64String(spreadsheetPrinterSettingsPartData))) { spreadsheetPrinterSettingsPart.FeedData(binaryDataStream); } }