{"id":21408539,"url":"https://github.com/sultanimbayev/ieit.reports.export.helpers","last_synced_at":"2025-07-14T00:34:24.751Z","repository":{"id":85539235,"uuid":"92137812","full_name":"sultanimbayev/IEIT.Reports.Export.Helpers","owner":"sultanimbayev","description":"Helpert for working with Excel spreadsheet","archived":false,"fork":false,"pushed_at":"2022-05-22T14:37:22.000Z","size":3161,"stargazers_count":5,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-28T07:09:41.306Z","etag":null,"topics":["documentformat","dotnet","dotnet-framework","excel","microsoft","net45","openxml","spreadsheet"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sultanimbayev.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-23T06:32:49.000Z","updated_at":"2024-06-19T23:00:35.808Z","dependencies_parsed_at":null,"dependency_job_id":"7a41e9f3-5a99-4a10-a431-af350ca96a14","html_url":"https://github.com/sultanimbayev/IEIT.Reports.Export.Helpers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sultanimbayev%2FIEIT.Reports.Export.Helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sultanimbayev%2FIEIT.Reports.Export.Helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sultanimbayev%2FIEIT.Reports.Export.Helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sultanimbayev%2FIEIT.Reports.Export.Helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sultanimbayev","download_url":"https://codeload.github.com/sultanimbayev/IEIT.Reports.Export.Helpers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225934413,"owners_count":17547740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["documentformat","dotnet","dotnet-framework","excel","microsoft","net45","openxml","spreadsheet"],"created_at":"2024-11-22T17:16:45.187Z","updated_at":"2024-11-22T17:16:46.040Z","avatar_url":"https://github.com/sultanimbayev.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IEIT.Reports.Export.Helpers\n\nRead [english version](ReadmeEng.md)\n\n\nЭта библиотека является расширением библиотеки [DocumentFormat.OpenXml](https://www.nuget.org/packages/DocumentFormat.OpenXml/). \nИ предназначена для формирования отчетов в формате Microsoft Excel 2007 и выше (.xlsx). Не поддерживает формат Microsoft Excel ниже версии 2007 (файлы формата.xls)\nЭта библиотека создана для того, чтобы упростить работу с Excel файлами используя только DocumentFormat.OpenXml.\n\n## Установка с помощью NuGet\n```\nPM\u003e Install-Package IEIT.Reports.Export.Helpers\n```\n\n## Зачем мне это?\nС данной библиотекой вы работаете напрямую с драйвером DocumentFormat.OpenXml. Остальные методы являются лишь расширением для существующих классов.\nНапример, для того чтобы открыть документ:\n```C#\nvar filePath = \"myFolder/excelFile.xlsx\";\nvar editable = true;\nvar excelDoc = SpreadsheetDocument.Open(filePath, editable);\n```\nКак видите, тут мы используем DocumentFormat.OpenXml, и ничего больше. \n\nС данным расширениеми операции становятся проще.\n\nЗапись в файл:\n```C#\nvar worksheet = excelDoc.GetWorksheet(\"Лист 1\");\nworksheet.Write(\"Привет мир!\").To(\"B2\");\nexcelDoc.SaveAndClose();\n```\n\nПолучение и присваивание стилей:\n```C#\nvar style = worksheet.GetCell(\"A1\").StyleIndex;\nvar cell = worksheet.GetCell(\"A4\");\ncell.StyleIndex = style;\n```\n\nИли можно присвоить стили при записи в ячейку:\n```C#\nworksheet.Write(\"Привет мир!\").To(\"B2\").WithStyle(style);\n```\n\nОбъединение ячеек:\n```C#\nworksheet.MergeCells(\"A2:B4\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsultanimbayev%2Fieit.reports.export.helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsultanimbayev%2Fieit.reports.export.helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsultanimbayev%2Fieit.reports.export.helpers/lists"}