i have a question: is there any way to show a single row of a table in two rows? The problem is that my table has too many fields and is too wide. So, I think that maybe you can split each row in the table to make it in a row. For example (my idea in Excel, just for example):
Complete table
...and my idea
I hope for your help!
You can:
add a Tablix with 4 columns and without header
add a Rectangle in every detail cell
add 4 TextBox for every Rectangle: use 2 TextBox as labels and two TextBox as values
increase Rectangle height in order to put spaces between every rows
Once you perform this operation for value 1 and 5, you can copy and paste Rectangle in the other 3 cells and simply change label and value.
Related
i got my pdf like this.
https://drive.google.com/a/mahidol.edu/file/d/0B9vSVV3dDAmFZDkwWXdfYWNDc2M/view
first, on Page 1 i use rowspan on the first column when it splited, bottom line not be equal. i want the line to be equal.
second, on Page 2 when table splited, on first column, i want to repeat column value again on new page.
thank you so much.
ps: I use nest table (fill table into another table). i am not sure, this is cause of problem or not?
I have dynamically created labels which has id as "label+i". Those labels get their text from again dynamically created textboxes with id's as ""text"+i". I get total numbers of textbox from user. What I'm trying is if I get 12 labels I want to have 3 row in total. All rows has 4 columns in db. Max number of label will be 28 or 32 so there will not be a hundred of labels.
For example if I have
label1, label2, label3, label4,label5,label6,label7,label8
then first row of database will be
col1=label1
col2=label2
col3=label3
col4=label4
and second row will be
col1=label5
col2=label6
col3=label7
col4=label8
Since I don't know how to separate rows in a single query execution I couldn't think of a good algorithm. I need your help guys :)
thanks in advance.
you can do itsimple but hopefully will give you an idea how to do it.
for (int i=1;i<=NumOfLabels;i++){
if (i%4==0)
{
insert into yourTable values( labels[i-4],labels[i-3],labels[i-2],labels[i-1]);
}
}
I got a Column Series that looks like this:
As you can see i got lots of columns, that I need to group somehow. A group consists out of 1 shuttle and for each shuttle there are 5 nests. My preferred form of grouping would be a, the nest written underneath each column and the shuttle again underneath. Between groups there should be a vertical line or some space to separate them. If this isn't possible I would greatly appreciate any other suggestions.
create a datatable with a column for each nest( so total five columns) , add five column series to the chart , DependentValueBinding to each column name, set ItemsSource to datatable( same for each column series).
Let me know if you want the code.
I have a MainGrid in Wpf (not a DataGrid) it has 3 rows(0.1 and 2) i have made rows using xaml at design time now at run time behind a menu button i want to add 2 column to row 1 of the main grid.
The hard part is that only break the row 1 into 2 columnn and not the whole Grid.
i know that to add new rows and columns one can use rowdefination and columndefination but
couldnt find anything here:
MainGrid.RowDefinitions.ElementAt(1).SetValue...;
Thanks
Why don't you add a Grid with 1 row and 2 columns to that row instead. And put your contents in that Grid. That will be easier.
make the column span = 2 for all the controls that you add in row 2 and 3...
i have database that connect to crystal report.
i have only one field.
how i can print this field in 2 column
ex:
col1 ---- clo2
1 --------- 4
2 --------- 5
3 --------- 6
thank's in advance
if the value of the column is int you can do it with select from database like this
SELECT
case WHEN value / 2 = 0 THEN value ELSE null END AS col1,
case WHEN value / 2 = 1 THEN value ELSE null END AS col2
FROM table
If i haven't understand the problem please explain more. Also you can bind crystal reports to ADO .Net dataset then you can do this split in you code using a loop.
Best Regards,
Iordan
To create a multiple-column report:
1.Open the report you want to format with multiple columns.
2.On the Report menu, click Section Expert.
3.In the Section Expert, highlight Details, and then select Format with Multiple Columns.
A Layout tab is added to the Section Expert.
4.Click the Layout tab and set the Width you want your column to be.
Keep in mind the width of your paper when deciding your column width. For example, if you have three fields in your Details section, and they take up four inches of space, limit the width of the column to under four and a half inches so that all the field information can be seen.
5.Set the Horizontal and/or Vertical gap you want to maintain between each record in your column.
6.In the Printing Direction area, choose a direction.
7.If the report you're formatting contains grouping, select Format Groups with multiple column.
8.Click OK.
When you preview the report, you'll see that the field headers appear only for the first column. To have field headers for the second column, insert a text object.