{"action":"created","issue":{"url":"https://api.github.com/repos/netanelgilad/meteor-excel/issues/22","labels_url":"https://api.github.com/repos/netanelgilad/meteor-excel/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/netanelgilad/meteor-excel/issues/22/comments","events_url":"https://api.github.com/repos/netanelgilad/meteor-excel/issues/22/events","html_url":"https://github.com/netanelgilad/meteor-excel/issues/22","id":110477248,"number":22,"title":"Problem with binary write","user":{"login":"cskaandorp","id":11909896,"avatar_url":"https://avatars.githubusercontent.com/u/11909896?v=3","gravatar_id":"","url":"https://api.github.com/users/cskaandorp","html_url":"https://github.com/cskaandorp","followers_url":"https://api.github.com/users/cskaandorp/followers","following_url":"https://api.github.com/users/cskaandorp/following{/other_user}","gists_url":"https://api.github.com/users/cskaandorp/gists{/gist_id}","starred_url":"https://api.github.com/users/cskaandorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cskaandorp/subscriptions","organizations_url":"https://api.github.com/users/cskaandorp/orgs","repos_url":"https://api.github.com/users/cskaandorp/repos","events_url":"https://api.github.com/users/cskaandorp/events{/privacy}","received_events_url":"https://api.github.com/users/cskaandorp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-08T15:34:18Z","updated_at":"2015-12-08T13:06:18Z","closed_at":"2015-12-05T12:41:42Z","body":"Hi, \r\n\r\nI have a problem with the write method on the workbook. I have this piece of very simple test-code, straight from the examples:\r\n```javascript\r\nMeteor.methods\r\n\r\n  export: (data) ->\r\n    \r\n    excel = new Excel('xlsx')\r\n    workbook = excel.createWorkbook()\r\n    worksheet = excel.createWorksheet()\r\n    \r\n    worksheet.writeToCell(0,0, 'Players leaderboard')\r\n    workbook.addSheet('MySheet', worksheet)\r\n    \r\n    wopts = { bookType: 'xlsx', bookSST: false, type: 'binary' }\r\n    \r\n    # workbook.writeToFile(\"/Users/casperkaandorp/test.xlsx\")\r\n    wbout = workbook.write(wopts)\r\n    \r\n    return wbout\r\n```\r\n\r\nThis doesn't work. On the console I read:\r\n\r\nException while invoking method 'export' TypeError: Object [object Object] has no method 'write'\r\n\r\nI don't get it. The writeToFile method works fine, I've seen the write-implementation but nevertheless Meteor claims not to have the write-method. Any pointers on this? Thanks and thanks for your great work!\r\n\r\n    \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/netanelgilad/meteor-excel/issues/comments/162874630","html_url":"https://github.com/netanelgilad/meteor-excel/issues/22#issuecomment-162874630","issue_url":"https://api.github.com/repos/netanelgilad/meteor-excel/issues/22","id":162874630,"user":{"login":"cskaandorp","id":11909896,"avatar_url":"https://avatars.githubusercontent.com/u/11909896?v=3","gravatar_id":"","url":"https://api.github.com/users/cskaandorp","html_url":"https://github.com/cskaandorp","followers_url":"https://api.github.com/users/cskaandorp/followers","following_url":"https://api.github.com/users/cskaandorp/following{/other_user}","gists_url":"https://api.github.com/users/cskaandorp/gists{/gist_id}","starred_url":"https://api.github.com/users/cskaandorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cskaandorp/subscriptions","organizations_url":"https://api.github.com/users/cskaandorp/orgs","repos_url":"https://api.github.com/users/cskaandorp/repos","events_url":"https://api.github.com/users/cskaandorp/events{/privacy}","received_events_url":"https://api.github.com/users/cskaandorp/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T13:06:18Z","updated_at":"2015-12-08T13:06:18Z","body":"For me as well. Thanks from me as well! And thanks for your work."}}