|
-
Mar 23rd, 2000, 12:27 AM
#1
Thread Starter
Hyperactive Member
I have a *.rtf that has hidden text.
when I load it into my RTB I would like to delete any hidden text.
How could I do that?
thank you for your time and have a good day
-
Mar 23rd, 2000, 12:41 AM
#2
New Member
Find out what the rtf /h or whatever the tag is for hidden text. Search the textRTF property for some text you might know is hidden and follow back towards the beginning of the text to find the tag which represents hidden. Go towards the end to discover the ending tag text.
Ah, the puzzle, you can't select that tag text can you, but can't you instr(txtRTF,"/h") it and then rebuild it by mid$ it to death? Try dumping the txtRTF into a string or a text box and find them tags...
That'll work.
-
Mar 23rd, 2000, 03:00 AM
#3
Thread Starter
Hyperactive Member
I guess I should fill people in a little bit.
I use word to save a *rtf file. The hidden text "stuff" is there.
When I use RTB1.loadfile to open the file I loose the hidden text codes!
If I put the *rtf file into a text box I can see the hidden text code. I think it is "\v"
but If i load the file into a RTB and then view the RTB.textRTF in a text box the \v is gone!
Someone please help me. I am not very good with rich text files
-
Mar 23rd, 2000, 05:37 AM
#4
New Member
There are some RTF codes the RichText control doesn't support. I have read the documentation before, but I do not remember...
-
Aug 6th, 2006, 09:45 AM
#5
Member
Re: Rich text box and hidden text
badgers,I've had similiar experinced to yours.It is something strange & should not occur at all.What I'd wanted to do is to mark a text as hidden in the RTB.I stored the TextRTF in a variable and inserted the "\v" tag before the text.Then loaded the variable unto the TextRTF.Lo & behold!The text disappeared from TextRTF itself!This is technically bizzare!Because the text should be hidden in the RTB not in TextRTF which should reveal everything.I suspect this is a hilarious bug introduced by Microsoft.
-
Aug 6th, 2006, 05:24 PM
#6
Re: Rich text box and hidden text
I don't have this problem.
If I use
VB Code:
RTB.LoadFile "C:\Word.rtf"
then the hidden words remain hidden. Look at the text that Word produces, the hidden words should be enclosed with tags \v \v0
Make sure you have the latest updates to your VB.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|