Page 1 of 1
Problems RichEdit
Posted: Tue Nov 05, 2013 4:13 am
by Rulan
Hello,
Using IA17...
I get problems reading a file greater than 90kb into a richedit field...
I get chinese characters...
We did it, reading from text file into a variable... Richedit shows $variable$...
Have a look:
When the file is lower 90 kb everything worked fine...
The file-content grows within the time, as it contains log-informations.
Regards
Re: Problems RichEdit
Posted: Tue Nov 05, 2013 1:26 pm
by FrancescoT
Dear Rulan,
could you post the file you used?
Regards
Re: Problems RichEdit
Posted: Wed Nov 06, 2013 3:04 am
by Rulan
Ok Francesco,
here is the file...
Annother info: Memo-Field with this file worked fine...
regards
Re: Problems RichEdit
Posted: Wed Nov 06, 2013 10:33 am
by FrancescoT
Let me check it.
Regards
Re: Problems RichEdit
Posted: Thu Nov 14, 2013 10:00 am
by Rulan
Any knews?
regards
Re: Problems RichEdit
Posted: Fri Nov 15, 2013 1:00 pm
by FrancescoT
... just a question, how do you read the RTF file?
Regards
Re: Problems RichEdit
Posted: Mon Nov 18, 2013 2:19 am
by Rulan
Hello Francesco,
The read-command:
~InstallAware Clipboard Data~
~Read from Text File~
~{9E806E24-0DBE-49DC-8BDA-7516F3ABFC3A}~
~#READALL\$TARGETDIR$\SQL_Server_Modification_$SQLDATABASE$.log~
~var_txt_log~
~SUCCESS~
regards
Re: Problems RichEdit
Posted: Mon Nov 18, 2013 11:00 am
by FrancescoT
... in fact, that's the problem.
You can't use READ FROM Text file to read an RTF (BINARY) file.
Regards
Re: Problems RichEdit
Posted: Tue Nov 19, 2013 7:06 am
by Rulan
OK???
Could I know this behavior? If the rtf-file is smaller than 90kb it worked fine...
And...

Messagebox also shows information of the variable, which was filled using "READ FROM TEXTFILE" from the file greater than 90kb.
What is the action alternative to get the log informations on the screen? Any suggestions how to fill a RichEdit-Field?
regards
Re: Problems RichEdit
Posted: Tue Nov 19, 2013 1:20 pm
by FrancescoT
... I haven't tried with a message box ... but it seems to me really strange due the fact that a MessageBox expects plain text only .
I want to check this.
Regards
Re: Problems RichEdit
Posted: Fri Nov 29, 2013 1:49 am
by Rulan
Dear Francesco,
any news???
any ideas or workaround?
regards
Re: Problems RichEdit
Posted: Mon Dec 02, 2013 11:55 am
by FrancescoT
... the "Read From text file" must be used to acquire a plain text file ONLY (NOT BINARY).
Unless you write a custom component for that, currently there isn't too much to do.
Regards
Re: Problems RichEdit
Posted: Thu Dec 05, 2013 9:11 am
by Rulan
Hello Francesco,
1) the complete log file is plain Text, so the problem is not the reading of the text-file, I think.
2) The RichEdit field is able to show plain-text? When this is the normal behavior of richEdit I do not understand, that when the plain text file is greater than 90 kb the Characters become chinese.
So I use the memo field instead of the RichEdit in the dialog and it worked fine... Without showing chinese characters..
Regards
Re: Problems RichEdit
Posted: Thu Dec 05, 2013 11:26 am
by FrancescoT
Dear Rulan,
1) the complete log file is plain Text, so the problem is not the reading of the text-file, I think.
Yes, it is.
2) The RichEdit field is able to show plain-text? When this is the normal behavior of richEdit I do not understand, that when the plain text file is greater than 90 kb the Characters become chinese.
No, it is not! The RichEdith control requires a Rich Text Format content (often abbreviated RTF - a proprietary document file (BINARY) format).
So I use the memo field instead of the RichEdit in the dialog and it worked fine... Without showing chinese characters..
In fact! the standard MEMO control works with standard plain text contents (NOT BINARY).
Hope this clarify your doubt.
Regards