renebigot / XlsxReaderWriter

XlsxReaderWriter is an Objective-C library for iPhone / iPad and Mac. It parses and writes MS Excel XLSX files.
MIT License
438 stars 121 forks source link

Is it possible to set cell height/width ? #29

Open wojczitsu opened 8 years ago

wojczitsu commented 8 years ago

Is it possible to set cell height/width ?

renebigot commented 8 years ago

It should be possible to change a cell width by setting its column width. You can get a cell height by getting its row height. The setter won't work, but It will ASAP, I have to fix it.

renebigot commented 8 years ago

I've reopened it as a reminder for next release

ormaa commented 7 years ago

Hi,

do you have any idea of when this could be added, please ?

thanks Olivier

ormaa commented 7 years ago

I could provide a fix for that request. I am just wondering if you accept my contribution ? I tested locally on my computer, I can update the row height easily column width update is already working fine.

renebigot commented 7 years ago

I can if it's a simple fix. I don't have many time for this project anymore

ormaa commented 7 years ago

On 2017-06-22 21:43, René BIGOT wrote:

I can if it's a simple fix. I don't have many time for this project anymore

-- You are receiving this because you commented. Reply to this email directly, view it on GitHub [1], or mute the thread [2].

*

Links:

[1] https://github.com/renebigot/XlsxReaderWriter/issues/29#issuecomment-310482379 [2] https://github.com/notifications/unsubscribe-auth/AY-I61Lw4UUB9_H9DbjILDrQLeHjWzb1ks5sGsPmgaJpZM4IKpAO

Hi,

in BRAColumn.m, I added this code :

in BRARow.m, I didn't changed anything, because it seem to work properly.

I built 2 project : one in swift 2, one in swift 3, in order to use your library. I can share it to you if you want.

anyway, nice job.

Thanks Olivier

renebigot commented 7 years ago

Could you create a pull request for this ?

dor4emon commented 6 years ago

@ormaa Hi, how did you end up changing the height/width of the cell? I have tried:

let index = BRACell(reference: "A1", andStyleId: 0, in: firstWorksheet).rowIndex()
let row = BRARow(rowIndex: index, in: firstWorksheet)
row?.height = 1000
row?.hasCustomHeight = true

but nothing changes. Would greatly appreciate any help. Thanks

ormaa commented 6 years ago

Sorry this is to old for me, I don’t have the project anymore with me

On 4 Jul 2018, at 09:06, Jeffrey Leung notifications@github.com wrote:

@ormaa https://github.com/ormaa Hi, how did you end up changing the height/width of the cell? I have tried:

let index = BRACell(reference: "A1", andStyleId: 0, in: firstWorksheet).rowIndex() let row = BRARow(rowIndex: index, in: firstWorksheet) row?.height = 1000 row?.hasCustomHeight = true but nothing changes. Would greatly appreciate any help. Thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/renebigot/XlsxReaderWriter/issues/29#issuecomment-402384304, or mute the thread https://github.com/notifications/unsubscribe-auth/AY-I6233ka5pyNI0QVt6373PC6xHa1cjks5uDGl7gaJpZM4IKpAO.