{"action":"opened","issue":{"url":"https://api.github.com/repos/awalker89/openxlsx/issues/315","repository_url":"https://api.github.com/repos/awalker89/openxlsx","labels_url":"https://api.github.com/repos/awalker89/openxlsx/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/awalker89/openxlsx/issues/315/comments","events_url":"https://api.github.com/repos/awalker89/openxlsx/issues/315/events","html_url":"https://github.com/awalker89/openxlsx/issues/315","id":248250819,"number":315,"title":"setting landscape orientation does not work","user":{"login":"t-kalinowski","id":8462255,"avatar_url":"https://avatars1.githubusercontent.com/u/8462255?v=4","gravatar_id":"","url":"https://api.github.com/users/t-kalinowski","html_url":"https://github.com/t-kalinowski","followers_url":"https://api.github.com/users/t-kalinowski/followers","following_url":"https://api.github.com/users/t-kalinowski/following{/other_user}","gists_url":"https://api.github.com/users/t-kalinowski/gists{/gist_id}","starred_url":"https://api.github.com/users/t-kalinowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-kalinowski/subscriptions","organizations_url":"https://api.github.com/users/t-kalinowski/orgs","repos_url":"https://api.github.com/users/t-kalinowski/repos","events_url":"https://api.github.com/users/t-kalinowski/events{/privacy}","received_events_url":"https://api.github.com/users/t-kalinowski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-06T14:36:17Z","updated_at":"2017-08-06T14:36:17Z","closed_at":null,"body":"## Expected Behavior\r\nSetting a \"landscape\" page orientation via pageSetup works.\r\n\r\nTabs 2, 3, and 4 in the example below should be landscape but are not.\r\n\r\n## Actual Behavior\r\nAll the tabs in the example below are in \"portrait\", not \"landscape\". \r\n\r\n## Steps to Reproduce the Problem \r\n```\r\nlibrary(openxlsx)\r\nwb <- createWorkbook()\r\n\r\nfor(sht_nm in paste0(\"tab\", 1:4)) \r\n  addWorksheet(wb, sht_nm)\r\n\r\npageSetup(wb, \"tab1\", paperSize = 3)\r\npageSetup(wb, \"tab2\", paperSize = 4)\r\npageSetup(wb, \"tab3\", paperSize = 3, orientation = \"landscape\")\r\npageSetup(wb, \"tab4\", paperSize = 4, orientation = \"landscape\")\r\n\r\nfor(sht_nm in paste0(\"tab\", 1:4)) \r\n  writeData(wb, sht_nm, x = matrix(\"a\", 10, 10))\r\n\r\nsaveWorkbook(wb, \"testing.xlsx\", TRUE)\r\nshell.exec(\"testing.xlsx\")\r\n```\r\n![image](https://user-images.githubusercontent.com/8462255/29004209-ee3ef3f8-7a91-11e7-8259-1f21e08c6880.png)\r\n\r\n```\r\n## sessionInfo()\r\nR version 3.4.1 (2017-06-30)\r\nPlatform: x86_64-w64-mingw32/x64 (64-bit)\r\nRunning under: Windows 7 x64 (build 7601) Service Pack 1\r\n\r\nMatrix products: default\r\n\r\nlocale:\r\n[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   \r\n[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          \r\n[5] LC_TIME=English_United States.1252    \r\n\r\nattached base packages:\r\n[1] stats     graphics  grDevices utils     datasets  methods   base     \r\n\r\nother attached packages:\r\n[1] openxlsx_4.0.17\r\n\r\nloaded via a namespace (and not attached):\r\n[1] compiler_3.4.1 tools_3.4.1    Rcpp_0.12.12  \r\n```\r\n  - Version of openxlsx:\r\n```\r\n> packageVersion(\"openxlsx\")\r\n[1] ‘4.0.17’\r\n```\r\n  - Version of R: \r\n```\r\nR.version.string\r\n[1] \"R version 3.4.1 (2017-06-30)\"\r\n```"}}
{"actor":{"display_login":"t-kalinowski"}}