{"id":19535875,"url":"https://github.com/miyako/4d-plugin-xls","last_synced_at":"2025-04-26T14:36:08.153Z","repository":{"id":7803224,"uuid":"9173587","full_name":"miyako/4d-plugin-xls","owner":"miyako","description":"4D plugin to write XLS documents","archived":false,"fork":false,"pushed_at":"2021-03-23T11:01:13.000Z","size":94560,"stargazers_count":6,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T14:11:27.383Z","etag":null,"topics":["4d-plugin","xls"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miyako.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-02T15:36:58.000Z","updated_at":"2024-08-27T04:42:46.000Z","dependencies_parsed_at":"2022-09-22T06:22:52.145Z","dependency_job_id":null,"html_url":"https://github.com/miyako/4d-plugin-xls","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-xls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-xls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-xls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-xls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miyako","download_url":"https://codeload.github.com/miyako/4d-plugin-xls/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251001482,"owners_count":21520954,"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":["4d-plugin","xls"],"created_at":"2024-11-11T02:20:07.710Z","updated_at":"2025-04-26T14:36:03.114Z","avatar_url":"https://github.com/miyako.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"![version](https://img.shields.io/badge/version-16%2B-8331AE)\n![platform](https://img.shields.io/static/v1?label=platform\u0026message=mac-intel%20|%20mac-arm%20|%20win-64\u0026color=blue)\n[![license](https://img.shields.io/github/license/miyako/4d-plugin-xls)](LICENSE)\n![downloads](https://img.shields.io/github/downloads/miyako/4d-plugin-xls/total)\n\n**Note**: for v17 and earlier, move `manifest.json` to `Contents`\n\n4d-plugin-xls\n=============\n\n4D plugin to write XLS documents using [xlslib](https://sourceforge.net/projects/xlslib/) 2.5.0.\n\nFor reading cell values, you might want to consider [this](https://github.com/miyako/4d-plugin-free-xl).\n\n### Build notes\n\nsuppress `configure` error \"cannot run test program while cross compiling\"\n\n* Library solution for Windows\n\nhttps://github.com/miyako/msvc-xlslib\n\nhttps://github.com/miyako/msvc-iconv\n\n**Note**: XLSLIB has been modified to accept unicode path names on Windows.\n\n## Examples\n\n* Adding a SUM() function cell\n\n```4d\n$text:=Unicode_sample \n\n  //create a workbook\n$book:=XLS WORKBOOK Create \n\n$sheetName:=$text\n$sheet:=XLS WORKBOOK Create sheet ($book;$sheetName)\n\n  //problem with Mac version of Excel 2010; OK on Windows\nXLS WORKSHEET SET COL WIDTH ($sheet;0;20*256)\n\n$row:=0  //zero-based\n$col:=0  //zero-based\n$format:=0  //NULL=default format (0x0F)\n$cell:=XLS WORKSHEET Set cell text ($sheet;$row;$col;$format;$text)\nXLS CELL RELEASE ($cell)  //we don't need this reference any more, so release it.\n\n  //create a range reference node\n$cell1:=XLS WORKSHEET Set cell real ($sheet;0;1;$format;1)\n$cell2:=XLS WORKSHEET Set cell real ($sheet;1;1;$format;2)\n$area:=XLS WORKBOOK Create area node ($book;$cell1;$cell2;XLS_CELL_ABSOLUTE_As1;XLS_CELLOP_AS_REFERENCE)\nXLS CELL RELEASE ($cell1)\nXLS CELL RELEASE ($cell2)\n\n  //create a function node\n$fn:=XLS WORKBOOK Create fn1 node ($book;XLS_FUNC_SUM;$area)\n$cell:=XLS WORKSHEET Set cell fn ($sheet;2;1;$format;$fn)\nXLS NODE RELEASE ($fn)\nXLS NODE RELEASE ($area)\nXLS CELL RELEASE ($cell)\n\nXLS WORKSHEET RELEASE ($sheet)\n\n$success:=XLS WORKBOOK Save document ($book;System folder(Desktop)+$text+\".xls\")\n\nXLS WORKBOOK CLEAR ($book)\n```\n\n## Discussions\n\nhttps://forums.4d.com/Post//28120080/1/\n\n## 日本語特有の制限\n\n日本語のフォント名は指定できないようです。たとえば`ＭＳ Ｐゴシック`は`MS PGothic`と指定しなければなりません。\n\n## その他\n\nフォントサイズは[TWIP](https://ja.wikipedia.org/wiki/Twip)（ポイントの20分の1）単位で指定します。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiyako%2F4d-plugin-xls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiyako%2F4d-plugin-xls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiyako%2F4d-plugin-xls/lists"}