I would like to put multiple textboxes side by side between two labels, like this:
([=Fields.city] [=Fields.state] [=Fields.zip])
and have them display like this:
(Punxsutawney PA 15767)
(Concord MA 01742)
not like this:
(Punxsutawney PA 15767)
(Concord MA 01742)
Is this possible? I made each textbox shrinkable but that didn't do it. I also tried docking left but that didn't work either and it also treated the string literals (the parentheses) differently than the fields bound to data.
CanGrow property works only vertically. Try using HtmlTextBox. You can use variables or parameters there, use various styles on them etc.
Related
I'm creating a trial project wherein my window has two grids, left grid is sort of a table that has labels and textboxes each row and asks for a specific part of the invoice like item, name, address stuff like that and the right grid is to show a preview of the invoice that the left side is creating.
I thought about using a document viewer on the right side but I thought that anything I open there would be static and if I put values on the textboxes on the left grid, it wouldn't matter since I opened a standalone document to view on the right grid.
I thought about just creating a table out of the right grid and have the default values and populate the other ones when a user types something on the textbox and make it function as the preview but then I don't know how would I go about and printing it and also, it has about 45 rows which I couldn't fit in the grid without it being unreadable (because I had to cram 45 rows of data inside that small grid)
So is there a tool in the toolbox that could potentially create a interact-able grid? I tried the grid control but I can't seem to only make it show 4 columns because that's all I need, I don't want it to show E and the rest of the alphabet because I want it to resize accordingly with only 4 columns to make it more readable.
Oh and I also have devexpress installed so you guys could also recommend something I can use from there. Thank You.
I think this is the best solution since it does what I wanted it to do.
I created a scroll view and placed a grid inside it then set the length accordingly to show it in a reasonable size and let the scroll bar do its magic for me to see the rest of the grid without compromises of the content's size.
I would like to include an expression and an ssrs indicator based on the same expression in the same cell of a table.
I have tried doing the approach in the link shown :
http://social.msdn.microsoft.com/Forums/en-US/f5f19834-ba37-410c-bb7e-179807dfefea/indicator-value-in-same-cell?forum=sqlreportingservices
but the borders for that cell become invisible when I preview the report.
Please let me know if there is any other good way to do this which doesnt effect the borders.
my expression looks like this :
=Sum(Fields!Total_Sales.Value)/Sum(Fields!Products.Value)*100
My understanding of the issue, is that you want to show the value of the expression and the indicator in the same cell. I struggled with a similar issue a while back but settled with the following basic workaround. See below:
First create two columns, one with the expression and another with the indicator. It should look something like this:
Then change the border style of both cells to none but only for the left and right border. This will make it appear as if the cells are one in the same. The end result will look like this:
Its not perfect, but this should solve your problem. I hope it helps!
I'm writing by hand an application that use Gtk+. I'm using a GtkGrid to hold my GtkWidgets, but I can't put a GtkWidget into specific colum, as the second parameter of gtk_grid_attach() function says. E.g, the last element was placed into the 4-column, if I try to put into the 6-column it does not works; the GtkWidget is auto placed by the gtk into the 5-column.
You can't just "skip" a column, this has no meaning. An empty column is just 0 pixels wide. You need to put something there, either in the same row, or in another, if you want it to have a width > 0. You can just put a GtkFixed widget there if you want, but if this is just to separate 2 widgets, you may want to use the row-spacing and/or column-spacing properties instead. The official GTK documentation gives some advice about how GtkGrid works.
If all you want is to have some blank space between the widgets, you should be able to achieve that with someting simpler. Like a plain GtkBox, and using the padding support when adding the widgets.
dynamical reading date from database in codeigniter like given below
<?php echo format_date($row['date'], 'd M')?>
and the result will disply like 27 Jul
I want to style it to like this image http://line25.com/wp-content/uploads/2012/date-icon/16.jpg
How can i style like this image please help..
I’m afraid it can’t be done with CSS alone. The main problem is that the components of the date do not appear as elements in the markup, so you cannot style them differently from each other, except to a limited degree. By setting a width that forces them to different lines, you get the opportunity to use :first-line. But the possibilities of styling that pseudoelement are rather limited, by the specs and in practice.
So you would need to modify the generating code to produce something like
<span class=date><span class=day>27</span><span class=month>Jul</span></span>
Then you can e.g. style such an element as an inline block and the inner span elements as blocks and set background and content colors, font properties, and rounded border for the outer element.
I have a report which displays customer address in multiple labels.
My customers use windowed envelopes for mailing. I need the address labels position to be configurable.
Something like, I'll have a database table which stores the Top/Left position of each label per customer. Based on this table, I need to position the address labels on my report.
I thought, it is doable by expressions, but Location property doesn't provides ability to set an expression and make the label's top and left dynamic.
Anybody, any ideas, on how to achieve this?
As you mentioned, you cannot set an expression for location property. I want to do this before but it seems that there is no solution for this work.
Sorry for the duplicate post
I had the same problem as you did. I got around the problem by using an old HTML trick. It involves using a transparent.gif in an image. You put your image (linked to the gif), then put your label on top. Using a parameter, you can toggle which item to appear by setting an expression in the hidden property for both controls.
As stated by others, it isn't supported. However, here are two ugly work around possible for basic reporting.
Work around with padding.
You can't set formula on the label's location, but you can use padding option instead.
So you can set the label as wide as the report and as tall as the region.
Also, set the label's horizontal alignment to "Left" and Vertical alignment to "Top".
Then, add a formula in left and top paddings to offset the text.
You can also achieve a right aligned offsetted label by setting the Horizontal alignment to "right" and using right padding instead of the left one to offset the field from the right. With the same recipe, you can offset from the bottom by using "bottom" vertical alignment and bottom padding.
The ugly side:
This method will create a mess in the report designer as all dynamic label will overlap each other and take all the space over static label. Also, please note that with this method, you won't be able to do fancy stuff like adding borders around the text and hyperlinks.
Work around with sub report.
If the number of different positions for the label(s) are really low. You can create a subreport for each possibility and use a formula to display the right subreport for the right case. Sadly, this doesn't work for labels in the header as subreport aren't allowed there.
No solution, as it is not supported!!!
From MS online community support...
"As far as I know, the position of the textbox in the report is static not dynamic, so it will not shift to left."
Reference: http://forums.asp.net/t/1433297.aspx