I would like to render (show on screen) the contents and the formatting of an excel sheet in a Shiny app. At a minimum I would like to set the column widths and row heights as in the Excel sheet.
I am currently rendering the sheets using DT::datatable. By default the column widths are set to fit the content, which is not how to sheet looks like when opened in a spreadsheet editor.
How do I set the widths and heights of each row and column individually in DT::datatable or an alternative tool?
Related
I'm following the example for changing dataTable font colors from this answer: How to change shiny app dataTableOutput font color and auxiliary table element color?
However, I have multiple tables on the same page, and that code affects every table on the page, even if it isn't specified until the final table (which makes sense given that it's css and applies to all the matching elements).
How can I specifically target an individual table? I see that the tables have ID's when I use Selector Gadget, starting from 1 through n in order of appearance (this order won't change, so it can be hardcoded), but I have been unable to find how to specify the css for a specific, individual table.
I am using flex dashboard in my markdown document. First row of my page are value boxes. Is there a way I can resize and change the fonts of value boxes without implementing Shiny. I tried with ## row {data-width=10} but it does not seems to be working.
I'm trying to create a BIRT report. The code and query side of it works just fine, but the display is rather wonky.
There's one column whose text contents are rather long, and instead of showing some text and allowing scrolling of the text (which is the behavior I'd like there), it simply shows up as a very vertically long text block; kinda ruins the report a bit. I've also tried setting the width on the column, but no dice there either. Any ideas?
Also, as an aside, how do I get the table's columns to have grid lines? I can do that on the rows, but I can't seem to figure out how to do that for the columns. If anyone has insight into that issue, it'd be appreciated.
Here's a screenshot of the issue
Here's my BIRT report XML, without headers and footers in order reduce characters
I think there is no way to use a scrollable view element inside your report, because the output by the default html-emitter is completely static (I would like to see a different answer if this should be wrong).
To your second Question about how to add a border to a column. Click into the cell of your table, click on "Border" inside the "Properties Editor" and select the borders you like to use. This should be repreated for all cells where you want to use the borders, because this configuration is not applied for a whole column but just for one cell. If you want a border for the whole column you need to setup the border for every cell in the column.
If you have already a data cell inside your table cell, you can use the outline view to select the table cell instead of the data cell:
I am using dynamically generated table with knitr. Sometimes the tables are small and fit within the text width while other times it is large and one can use the following solution: Automatically adjust LaTeX table width to fit pdf using knitr and Rstudio
Just wondering if there is a way to use \textwidth only when when the table width is larger than the \textwidth? In automatic reporting sometime tables are large and sometime tiny. Using full text width generated awkward huge font table.
I have to export some images to excel, To center the images I use a table and colspan=4 to merge four columns of excel file,
when I write a text to excel file it is easily get centered, but for image I tried every possible scenarios, like img algin="center" or
and even put it inside a table and , but the result is the same.
any ideas?
Thanks in advance
The problem is that images are not bounded to the cell grid in Excel, they float.
You can't center them even using the Excel interface.