1. Patrick Fabian
  2. PowerBuilder
  3. Tuesday, 14 April 2020 10:11 AM UTC

I am using "Built-in TX Text Control" and we have a spellcheck implemented (from WinterTree Software), that adds red wavy lines to every supposed error. Sadly, the spellcheck itself doesn't come with a good function to delete the red wavy lines.

Problem is, we want to implement a manual function, that removes all the red wavy lines before saving, because otherwise those red wavy lines are saved as .rtf code.

I tried this:

rte_1.SetTextStyle(rte_1.GetTextStyle(Bold!),FALSE,rte_1.GetTextStyle(Subscript!),rte_1.GetTextStyle(Superscript!),rte_1.GetTextStyle(Italic!),rte_1.GetTextStyle(Strikeout!))

It doesn't work. It's not treated as an underline.

Is there any other way to specifically target the red line to be deleted?

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 14 April 2020 10:37 AM UTC
  2. PowerBuilder
  3. # 1

What you could do:

- have another RTE control which is invisible and does not have the spellcheck enabled and use that one to save the contents

 

string ls_value

ls_value = rte_withSpellCheck.copyrtf(false)
rte_invisible.ClearAll()
rte_invisible.pasteRtf(ls_value)
yield() // don't ask me why, but have seen some funny text appearing and seems to help

// whatever you do to save the contents:
rte_invisible.SaveDocument(....)

 

Comment
  1. Patrick Fabian
  2. Tuesday, 14 April 2020 13:09 PM UTC
I already talked to them. Their "Sentry"-Dll does have that function, but "WSpell" does not. So I'm looking for a method in PB.
  1. Helpful
  1. Miguel Leeuwe
  2. Tuesday, 14 April 2020 14:16 PM UTC
Okay, so it's the ActiveX Wspell, well I can't promise anything, but if they give me the trial version, I can try to find out if I can figure anything out.
  1. Helpful
  1. Miguel Leeuwe
  2. Tuesday, 14 April 2020 20:37 PM UTC
Hi Patrick, I received some feedback from Wintertree. I explained to them that the reason I wanted to download a trial version, was simply to solve a problem on the Appeon forum and they remember talking to you. They made it pretty clear that it would be hard to take out the "red lines" by editing the rtf contents. I also told them that searching and replacing things in rtf format is pretty hard nowadays since there's a difference between line endings in W7 and W10, of which they were fully aware.

Long story short: your best option is to get the "Sentry" product, which DOES allow you to do what you want. If that's going to cost to much, there's quit some free spell checkers if you google on it, but you'd have to consider the costs of re-coding everything against the price of the Sentry product (of which I'm not aware to be honest).

That's all I can do my friend.

kind regards
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.