12-09-2021
11:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
12-09-2021
11:56 PM
I don't know what happens and what changes, but the issue is in font size. Your version
FontSize='0.8'
doesn't work. You need to change it to some another form
FontSize='8,e-002' - Readed from manually modified text
or
FontSize='8e-2' - Also works
Or you can use standard number format "e"
Dim fontSize = 0.8
Dim fontSizeString = fontSize.ToString("e")
oTextBox.FormattedText = "<StyleOverride FontSize = '"& fontSizeString & "' Font = 'Arial'>" & oTextBox.Text & "</StyleOverride>"
EDIT
It is a localization issue. Because this works too ![]()
FontSize='0,8'