Hi,
I am computing a nice and quite large table in Word with ReporteRs library using these lines:
dataParProp = parProperties(padding= 0, text.align = "center")
resultFT = FlexTable(dataframe,
body.text.props = textProperties(font.size=7),
body.cell.props = cellProperties( border.style = 'none'),
body.par.props = dataParProp,
header.par.props = dataParProp )
doc = addFlexTable( doc , flextable = resultFT, bookmark = "BOOKMARK")
My FlexTable "resultFT" looks very neat and optmised in terms of space with zero padding in each cell.
However, in my word output "doc", my table has a margin of 0.19 cm on the left and on the right side of each cell (instead of 0cm)....
I tried the following options directly in the addFlexTable but I could not see any change in the word output:
doc = addFlexTable( doc , flextable = resultFT, bookmark = "BOOKMARK", par.properties = parProperties(padding.left = 0, padding.right = 0))
Am I missing something?
Or is it not possible to have a zero margin in a FlexTable in a Word document?
Many thanks in advance!