Is it possible to have 2 areas of text in one cell such that each can have a different color? You can do this in crystal reports but I cannot see a way to do this in ReportViewer. What it is doing is essentially highlighting an important text fragment if it appears in a cell description to draw the users attention. I am fairly new to reportviewer so it for now I am assuming it's my lack of knowledge that is making this difficult. I am using VS2010.
Thanks.
Turns out VicarlnATutu wasn't quite right.
You can do this, but only if you are using VS2010 (which I am) because it includes the new SSRS rendering engine for SQL-Server 2008. This allows you to put some basic HTML into a field and have multiple formats in one cell. For more info see below:
http://msdn.microsoft.com/en-us/library/cc645967.aspx
http://msdn.microsoft.com/en-us/library/cc627491.aspx
One thing that tripped me up is what they call a 'placeholder' in the MS documentation is the little bit of text inside the textbox control that shows up by default. You can select two different things on the control in VS2010. One is the textbox itself. Right clicking on the textbox gives you 'text box properties'. The other thing you can select is the default text INSIDE the textbox. Right clicking on this 'placeholder' text gives you a different context menu where you can select 'placeholder properties'. This is where you can change the cell to accept HTML.
No, unfortunately not. I don't know if there are custom controls out there for ReportViewer, but the built-in TextBox only supports setting color (be it Foreground or Background) for the entire thing.
ah, good to know. kind of a unintuitive way to tell a TextBox to display HTML, but nice to know that you can!
Related
Hopefully a quick one
I am creating a form in Word with a Save macro that uses an ActiveX Label as a button. The label works fine as a button but I am having 2 issues:
when using the document in normal mode, the coding text in curly brackets for the label is still visible - see image
How do I get rid of this?
When printing the form, the button pushes the header text down a line:
You can see in the first picture that there is no gap here.
Thanks for your help.
(1) Press Alt+F9 to toggle off display of field codes (and make sure you're not in Design Mode).
(2) is impossible to be sure without having the document in front of me but...
Printing problems are notorious with ActiveX controls, which were designed for use with UserForms, not for the document surface. Your best bet for stability would be to use a one-row, two-column table with the button on the left and the address on the right.
Or use a MacroButton field code instead of an ActiveX control.
I have been trying with no success lately to implement vertical text on an Access 2003 form im designing. There is a vertical option in the properties of every text box, but its not in the right direction. Text boxes marked with the attribute vertical = true start their text at the top side and then run downwards, exactly not as I want.
So my question is:
Is there native support for vertical textboxes other then the vertical attribute in Ms Access 2003
Failing #1, is there a way to shift text in text boxes by 180°.
Is #1 or #2 dependant on wether or not you have fixed text or text obtained from a data source.
Microsoft really messed this up by only implementing the one vertical direction, and not the other. :(
No
If you are desperate enough, you can try one of the solutions by the Great Wizard aka Stephen Lebans: http://lebans.com/rotatetext.htm or http://lebans.com/xrotatetext.htm
There are other external solutions (commercial), like Total Access Components.
You'll have to try it out, but in comparison to the 90° rotation, making a label caption dynamic or giving a text box a constant text is trivial.
I have a text field and I cannot drag my mouse and select the value/text within the text field in a vb.net application The cursor is stuck in the front of the text. However, just to check, I created another 'test' application containing a text field, and the mouse function is working fine. Mouse can be easily dragged to select the text field. I am completely lost here and any help in this subject matter would be really appreciated. I am wondering whether the fault lies with the application in itself.
Note: I have simply dragged and dropped a text-box from the toolbox of
visual studio and obtained those results. No special code written
Thanks in advance
You may need to check and set the TextBox's Enabled property to True
I am trying to design a web form in visual basic and i have a problem.I put all the elements(buttons, labels etc) in the place i want.When i run the form i have the option to maximize the screen of the form and when i do this,a blank space appears in the form where there are no elements and all my elements are shown to the left upper side of the form. I can't see that blank space when i am designing the form. Could you help me how to fix the fix the size?
I tried autosize,autoscroll and size properties but i didn't fix the problem.
You don't specify whether it's VB6 or VB.Net but for once, it doesn't matter much.
Look at the form property BorderStyle, and change it to one of the "fixed" options.
VB6 documentation
VB.Net documentation
I've got several reports and they have been built with various formatting. Nothing huge just the header row is different between them. I'd like to pick a standard and just update the reports so they all look the same. This can be done on a textbox by textbox basis - setting the font, font color, font size and background color.
It seems like I should be able to select more than one textbox and set the formatting on them all at once but the "textbox properties" item is disabled when I've selected more than one.
Any thoughts?
I wonder if you would be better off creating a report template that you could apply to all of your reports.
Here is a link explaining how to do that: http://weblogs.sqlteam.com/jhermiz/archive/2007/08/14/60283.aspx
never mind... it can easily be done by selecting the textboxes and then using the formatting toolbar at the top - just needed to ask for it to appear before my eyes.