Is there a way to handle conditional drawing in OpenTBS with DOCX? - docx

I'm generating a document with conditional drawings in a dynamic table. Let's say I want a share for some rows, a circle for others etc...
I've converted my drawings into pictures and it's working well except the quality is very low after converting the docx it into pdf and printing it.
So my question : Is there a way to handle conditional drawing without converting it into pictures ?
Thank you,

You cannot change a drawing into another with OpenTBS.
But you can make conditional fields that display or delete a drawing.
So the first solution is to add all the possibles shapes in the table row you're taking about.
The shapes should have the Layout Option set to « In Line with Text » ; so that you are sure where the shape is anchored and is actually placed inside the row.
Then in property Description or Title of the shape you can add a TBS field like: [my_block.display_circle;magnet=w:drawing].
Such a file will display or delete the shape according to the value of column display_circle in the data. See parameter magnet for more details and options. This can arranged at the PHP side by editing data or using a ondata custom function.
Another solution is the use one different row for each possible shapes, and use conditional section for blocks.

Related

Oracle reports output like HTML table from single database cell

Is it possible to create HTML-like table in Oracle Reports (output format: .rdf) based on database cell content ?
Report is big, with lot of content, from which one should be formatted cell content.
What is currently:
current data displayed in ready report - database cell content
What is requested:
what should be displayed
Using HTML formatting in this case doesn't work,
https://docs.oracle.com/cd/E15523_01/bi.1111/b32122/orbr_concepts2008.htm#RSBDR481
HTML tags are very limited for an .rdf report.
Is there any way to achieve this functionality, using another technique?
If you used the Wizard to create a report (you should have; it does a lot of dirty job for you), it also creates layout and puts everything into its place, creating a "grid" (table), something very close to what you need.
Navigate to paper layout editor where you can choose to format lines (cells, frames) - in the vertical toolbar, pick a line color (for example, black). In (horizontal) menu, go to Format menu (and then Line and Border submenus), selecting borders you want (top, bottom, right, left).
Once you're done, run the report and you should see a pretty table.
Saying that "output format is .rdf", that's wrong. Report is saved as a .rdf file, but its output can be, for example, a PDF file.
Never mind that, it was just a side note.

R write multiple hyperlinks into one excel cell

I'm using R, and would like to write several hyperlinks into one excel cell. In this cell, labels of these hyperlinks will be comma separated. I know a R function xlsx::addHyperlink to write hyperlinks in xlsx, however, I don't find a way to write multiple hyperlinks into one cell.
Could anyone help? Thanks in advance.
The default nature of Excel is one hyperlink per cell and it is non-negotiable. That said, there is a workaround but it requires a manual update.
Over the hyperlink labels you would need to insert a shape (e.g. box) and set the fill and border options to none and then add the hyperlink to the shape. I've left the border color on the images to show what I mean.

Altering The Sorting Arrows In an R Shiny tabPanel

I didn't see anything here or in http://shiny.rstudio.com/reference/shiny that seems to hit on this problem.
In an R Shiny tabPanel output, the sorting arrows align with the right side of the search fields at the bottom of the page.
Here's a pretty good example:
http://shiny.rstudio.com/gallery/datatables-options.html
Is there a way to make them align just to the right of the column name text up top?
Alternatively (or possibly both), is there a way to change the color of the arrows?
The default greyish doesn't really stand out. Bonus points to make the up and down arrows different colors.
Doing it directly in RShiny is best, but I could muddle my way through .js or .css if needed.
I'm trying to head off imminent support requests of "the column is sorting wrong" and "I can't see the arrows" before I push into production.
At the bottom of that shiny example you showed they show that you can pass in through the options parameter options to the rendering for the DataTable table, via the shiny::renderDataTable() function.
Hopefully the http://datatables.net/ site has documentation on what you want if it's indeed possible
If you look at Developer Tools on the http://shiny.rstudio.com/gallery/datatables-options.html page maybe you can see what element would need to be changed.

How to get info from a window and the modify it using AutoIT?

I am trying to automate the process of turning display layers on and off in a modeling program using AutoIt. I am currently using code that simply simulates a mouse-click at a particular pixel position and as that of course needs to be set up differently depending on the screen being used at the time, I would like to replace the mouse-click simulation with getting the information from the window, looking for a certain text, then checking or unchecking the "Map" and "Legend" check boxes.
My problem is that I don't know how to do that. If someone has a good way to include or point to screen shots let me know but until then I will try to describe everything the best that I can.
The window:
The window I am referring to is titled "Map Layers". The area that I am specifically interested is looks like a large list box (it takes up the vast majority of the window space) and it has 4 columns: Layer Name, Map, Legend, and Sample. Name has the name of the layer, Map has a check box to control which layers are displayed, Legend has a check box that controls which layers appear in the legend window, and Sample for some layers has the symbol that will appear in the legend. for my purpose the Sample column is irrelevant.
AutoIt v3 Window Info:
When I use the finder tool I can't get it to highlight the "list box" area, only the surrounding boarder that it and some buttons are in. The window info says that this surrounding boarder area (which seems similar to a panel) has a class of Button.
So my fundamental question is what code to use to drill into that "Button", find out what the list view looking thing is, and get the info from it, then interact with the map and legend check boxes without referring to pixel location (or at least grammatically get the pixel position).
If I have left out any important information or was unclear anywhere please let me know.
Edit: Forgot to mention and don't know if it helps but the info given using the finder tool for the column headers is Control: Class: SysHeader32
Try RanorexSpy and see if it can give you more details.

Microsoft Reporting WebForms Report Viewer - Exporting to Excel

I have a report viewer that I am using to export to PDF and Excel. Sometimes some of the data in the tables is longer than a singular line.
When exported to PDF the fields that need more height are automatically given it. Yet when I export to excel it remains in the original height and doesn't grow to display all the data.
I want the cell heights to automatically grow to display all the data on screen. I have set CanGrow to true but this has no effect (apart from working when exporting to PDF).
Has anyone had this problem before and can share a resolution?
Thanks
OK, after not receiving any answers I delved in to this one myself.
It appears that text doesn't wrap in excel when the cell is a number of merged cells together.
So in the report viewer if all text areas and items aren't lined up with one another or if one is twice as long as two others then they will be placed in merged cells to make up for the crossover.
It means that the chances are these isn't a solution to the problem, unless all your text areas are identical in width or you can alter the layout so that those that require wrapping to new lines will only take up a single cell.
I done this by putting everything in a table, and knowing that if I merged any cells then text wrapping would not be possible.
I hope this will help someone out there!

Resources