How to auto adjust content control width to table column width in word using office js APIs? - ms-word

I have custom word add-in, which inserts content control with numbers and currency symbols as text into word document at the cursor position.
Requirement is if content control is getting added inside a table, as a table cell, then width of content control should match with table column width.
Current behavior:
current behavior
Expected behavior:
expected behavior
Questions:
Is there any office JS API or out of the box Word feature to auto adjust content control width to match with table column width?
If not, is there any way to calculate width of both content control and table column programmatically and get number of spaces to be added? This algorithm should be generic so that it would work for all font families and font sizes.

Thanks for reporting the issue. It's definitely not right behavior and it has been put on our backlog 6336725. We will let you know when there is update. Thanks!

Related

How can I use Footnotes with Oracle BI Publisher

I am putting a footnote in an .rtf template, and before generating a report it seems ok,
but when I load an XML sample and preview the document (.pdf or .doc etc.)
the footnote content goes right into the body of my report (example is in the picture).
I've tried using text boxes, but it doesn't help.
I've also tried just making a paragraph look as a footnote, but since I have a lot of
tags in my template, the footnote-looking text doesn't stay at the
bottom of the page.
and I can't use footers/headers because I need only one footnote at one page.
Try to draw a borderless table with one column and two rows where the first row has fixed hight (exactly) of the size of body, and the second row fixed hight of the size you want to reserve for the footer. Then you place your xml data in those two rows of the table the same way as you put it on the page. I use that for different forms when the position of the data is fixed. There are also other table/row/column properties that you might want to use.

Whats the difference between DataTables widget and Tables Widget in Flutter?

Im going to create an excel like application in Flutter where the user can input a quantity to one of the cells and the app automatically calculate its values based on quantity.
Shall i use DataTables or Tables widget?
Both accept widgets as cell content like TextField, Slider or just Text. Anywhere there are some differences:
Feature
Table
DataTable
Checkbox column
no
showCheckBoxColumn
Set column width
columnWidth
no
Set row height
no
dataRowHeight
Sortable
no
integrated
If a cell with a no this does not mean, its not possible. The feature is just
not directly supported by the widget. In all cases sizes will computed according to Flutters rendering engine: constraints go down, sizes go up.
Anybody please feel free to add more content to above comparison.

Adjust column width in Nattable - show complete column name when selected

I need to display complete column header name, when column is selected, it means increase column width. And reset width when column is deselected. I did not find example in nattable_examples.exe. Is there some built in feature?
No there is no built-in feature that would support automatic increase/decrease of column widths on selection. You will need to implement some selection listener and then do an auto-resize on the selected column by using the AutoResizeColumnsCommand.
But I don't think we have an event on deselect, so I am not sure how you want to reduce the column width again.

Rmd to word with flex table - need to increase margins of ONLY the table in the word output

I am building a routine report in Rmd that is outputted to word.
I have created a reference document to determine all the fonts and styles.
I am using flextable to create the table in this report.
The table needs to be wider than the margins of the rest of the word document.
Is there anyway to do this?
So far I am only getting the correct margins on the outputted table by increasing the margins in the reference document, but this isn't a great solution since the rest of the document, which is mostly text, needs to stay within certain margins.
I have tried increasing the width of the columns (width function for flextable), but that also doesn't work.
Any help would be appreciated!

How to change the default width of the record selection field on the TYPO3 BE

When selecting a record for a FCE, CE, plugin or anything else in TYPO3, there is a somewhat narrow text area that lists your records once you have selected them from the popup. That text area is too small for the length of the names of my records.
How do I globally set the width of this field, so that for all BE users, it's a custom width that is much wider?
There is not option to set the width of an input field of all modules and extensions globally. The reason is that every field is identified by it extension name.