How to display a grave accent in a textbox - vb.net

On a postback I'm setting the value of one of my textboxes to a grave accent. This is causing a bunch of the HTML that follows to be shown in the textbox instead of the grave accent. What am I doing wrong?

Are you using the HTML entity number or name instead of the actual grave accent character? http://www.w3schools.com/tags/ref_entities.asp

Use ` for your grave accent. That should solve your problem.

Related

PDFBOX - WordUtils.wrap - need to display bold and non-bolded text on same line

I am a newbie to pdfbox AND java - trying to replicate a pdf letter with logos formatting etc. I need to use mixed font (bold) within a sentence. Presently appending paragraph string, using WordUtils.wrap, then begin.Text , etc. to parse and display (drawString has strikethrough cannot select this - I did find info for multi font using it). As field values will vary in text and length, I cannot simply search on, split and change font to display. Unable to use tags to do this (OMG I've tried everything I can think of!), but hoping there is a way to use a single char identifier for beginning of bold and another for end of bold??? One issue is that no guarantee the identifiers would end up on the same line of the paragraph. UGH. Everything else is perfect, EXCEPT the text I need to bold. Does anyone have any suggestions?? I am required to use pdfbox to accomplish this - cannot use Itext. Help please! Thank you!!
SOLVED - I figured it out. Thank you for your suggestions!
I did not want to use positioning, needing to keep it as simple as possible. We'll eventually need to implement hundreds of letters. I Am using Utils.wrap strictly as a line parser, not formatting, so that is cool.
Using 2 identifiers - 3 checks -
1) both on the same line,
2) beginning bold on one line, and
3) end bold on another line.
Using split string by " " and checks equal to identifiers. Formatting is perfect. Going forward may need to modify, if for some crazy reason identifiers are contained in letter text.
It works for the 1st roll-out. Thanks again - your help is much appreciated!!!

Char & behaviour on controls

Currerently I face strange behaviour on my controls when text is present either on advlistbox items or buttonx and probably rest as well. This happens when i use & charackter within string. For instance when i use double && it shows single one. Another example when i put e.g &&&something then it shows &something with s - underscored. Is there anyone whom knows what is going on and how can i avoid that situation?
A double ampersand is used to escape the default behavior of an ampersand relative to controls. When an ampersand precedes control text it underlines the following character, usually to denote that controls hotkey. In the case of your triple ampersand situation you are using the right most ampersand as the underline and the remaining 2 as an escape so that a literal ampersand is displayed in your controls text.
If your goal is to literally display 2 ampersands then you must supply your control text with a total of 4 consecutive ampersands. (&&&&)

How to display an underline _ in a field text of a dynpro?

As the title says, I would like to display an underline character _ in a dynpro field text. Is it possible? I have tried every possible option in the field text attributes.
PS: I know P_BUKRS is not the best name, it's just to show the issue.
Instead of text fields use an input field and set it to output only. Then you can set the text during PBO which will show underscores.
DATA: lbl_bukrs(7).
MODULE init.
lbl_bukrs = 'P_BUKRS'.
ENDMODULE.
Here is a quotation from SAP Help.
If the text consists of several words, they are joined together automatically by underscores, which are replaced by spaces at runtime.
Based on that the answer would be no, it is not possible for a text field to display underscores because they will be replaced by spaces at runtime anyway.

HTML Formatting tossing #error

I am attempting to format an expression in SSRS with an HTML code and am getting #Error tossed upon report preview. My expression looks as follows:
="<b>Region: </b>" + Fields!RegionID.Value
I have also ensured that HTML - Interpret HTML tags as styles has been selected under Placeholder Properties. Has anyone experienced this behavior before?
Thanks!
In SSRS 2008 and above, you can use placeholders to achieve this.
See Formatting Text and Placeholders for more details.
To give a quick example, in a textbox, enter some text then right click on the empty space to the right of the text:
You can set the placeholder properties to display your required field in the Value property:
You now have two distinct text parts in the textbox that can be formatted independently, e.g. one bold and one normal:

Winforms problem with codepage "?" char instead of apostrophe '

In .NET 3.5, I have a Winform with a combobox in it. The datya comes from a DB2 mainframe DB. The problem is that we have a character that is not the real apostrophe. Pasted from Word I'd guess. But in our combobox, it is not diplayed correctly. It shows a question mark "?" instead.
Any idea on how could I get it to display the character as it is ?
First you should check if the character is intact in the database, or if the problem is that the code page doesn't support the character.
If the code page used in the database doesn't support the character, it has been replaced with a question mark, and the data is lost. The best you could do in that case is to try to figure out which question marks are the result of data loss, and which are supposed to be question marks, and try to recreate the data.
If the character is intact in the database, you should just need to make sure that the font used to display the text supports unicode.
Note: The character used is probably a typographic apostrophe like unicode character U+2019.