List Positioning in itextsharp 5 - asp.net

I didn't find a proper way to position things in itextsharp.
I want Intended lists:
But what actually I have is current list:
If I add another list it appends after the first one but not one the right of current. Is there a way to do this?
List li = new List(List.UNORDERED);
li.SetListSymbol("\u2022");
li.Add("Two");
li.Add("Three");

Well No one answered this query. I found the solution.
We can just have a table with 1 row and 2 columns. Each column will have a list inside. So table cells support the alignment of text. If someone still need help. Comment below

Related

Unordered lists next to each other. First word of every list are in line

I want to put 4 lists next to each other where the first word of every list are inline with eachother. Not every list has the same amount of items.
I have not tried anything because i don't know what kind of elements i could use to fix this problem, sorry.

How to export dataset elements from Birt to .docx as numbered list

I have a birt report which contains numbered list of questions. It built with some dataset elements + label (text).
But after exporting it to .docx numbers usually merge with the text (as a part of text). I need it to be splitted out of the text (as the formatted numbered list in MS Word).
What can I do?
I expect of splitted numberes and question text
As I said in my comment, I doubt this is possible.
If you can live with a different structure that more or less has the same properties regarding visual appearance and editability (does that word exist?), what I do is:
Use something like a RUNNINGCOUNT aggregate to generate the item numbers.
Use a two-column table to render the ordered list: Left column contains the number, right column contains the text.
This takes care of the visual appearance.
To insert items inbetween manually later, one can insert a row into the table, but it's necessary to re-number the following items manually.

Assigning a list to column properties

I have a list containing values and I want to assign it to the column properties of a table in spotfire. I am currently using a for loop to do it. Is there a better approach to this, like assigning the entire list in one go?
As mentioned previously I am doing it currently using a for loop which can be seen below:
high=c(5,2,10)
low=c(3,1,0)
for(col in 1:ncol(temp)){
attributes(temp[,col])$SpotfireColumnMetaData$limits.whatif.upper=(high[col])[1]
attributes(temp[,col])$SpotfireColumnMetaData$limits.whatif.lower=(low[col)[1]
}
}
I have also tried just to do
attributes(temp2)$SpotfireColumnData$limits.whatif.upper=high
but that didnt seem to work.
So I want the column for limits.whatif.upper to be 5 for the first row, 2 for the second, and 10 for the third. As I said this code works, but I want to see if there is a faster way of doing it, since it seems that accessing the column property every time and changing it slows down the code a lot.The columns properties already exist so I am not creating new ones with this code.
It seems that python works faster than R with column properties. So if you need to do it faster, it may be better just to transfer the data over to python and do it from there. I dont have as much expierence in R, so it may just be poorly written R code as well.

Suppress/Filter a row

I am fairly new to using PeopleSoft BI Publisher plugin for MS Word and integrating it with PS Query Manager. My question is whether in the RTF file you can put logic to suppress or filter out data?
I have a for-each grouping that prints a line (row). I would like to add logic to NOT print the line if the Witholding amount field (M.WTHD_AMT) is equal to 0 (zero). My question is what would the syntax look like, and where should I place it (on the For Each grouping below, the Field level, or somewhere else?) I know I can alter the PS Query (data source) to do the filtering but I would like to leave that as-is and handle this in the template.
I see that there is another conditional IF statement ("rmt_") so I'm not sure if I can add this additional logic to that element or if I need a separate one. I appreciate any feedback!
EDIT:
I've added a new "Conditional Region" as suggested, and it works with just the WTHD_AMT criteria !0 to zero, however I tried added additional criteria where L.PYMNT_TYPE = 'R' and when I run the process it doesn't display data on the PDF output. Is there something wrong with the syntax? Do I need to have a separate Conditional Region for this 2nd criteria? I've seen another BI report where they have 2 or 3 criteria as part of one element.
<?if:number(M.WTHD_AMT)!=0.00?> and <?if:L.PYMNT_TYPE='R'?>
Option 1
You can nest <?if?> statements. Just add another <?end if?> at the end. Make sure there are no spaces between the all of the IF or END IF objects at the beginning or end of the content/row, else the row may still be displayed.
Option 2
You can add conditions in the repeating section. Below will repeat the region for every record where M.WTHD_AMT is not 0.00
<?for-each:record_path/record[M.WTHD_AMT!='0.00']?>
'Conditional Region' is the button you are looking for.
When using this button, make sure to double check where the if/endif or C/EC elements are added. It tends to ignore the selected element and join the elements to the start and end of the line. You will then need to cut and paste it into the right spot. For you this will probably be right after the F element and before the E element.

Using JS to create a table

I have read this but the solution is only limited to 1 column.
What about a tree representation as opposed to a table?
this widget should work for this:
http://jimliu.github.io/angular-ui-tree/
Each line could also have multiple columns if you expand the node template.

Resources