Problems RichEdit

Got a problem you cannot solve? Try here.
Post Reply
Rulan
Posts: 56
Joined: Tue Nov 20, 2012 5:02 am

Problems RichEdit

Post 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
Attachments
file_greater than_90_kb.png
file_greater than_90_kb.png (39.28 KiB) Viewed 21837 times
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Problems RichEdit

Post by FrancescoT »

Dear Rulan,

could you post the file you used?

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Rulan
Posts: 56
Joined: Tue Nov 20, 2012 5:02 am

Re: Problems RichEdit

Post by Rulan »

Ok Francesco,
here is the file...

Annother info: Memo-Field with this file worked fine...
regards
Attachments
SQL_Server_Modification_Testen.log
(120.74 KiB) Downloaded 828 times
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Problems RichEdit

Post by FrancescoT »

Let me check it.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Rulan
Posts: 56
Joined: Tue Nov 20, 2012 5:02 am

Re: Problems RichEdit

Post by Rulan »

Any knews?

regards
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Problems RichEdit

Post by FrancescoT »

... just a question, how do you read the RTF file?

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Rulan
Posts: 56
Joined: Tue Nov 20, 2012 5:02 am

Re: Problems RichEdit

Post 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
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Problems RichEdit

Post by FrancescoT »

... in fact, that's the problem.

You can't use READ FROM Text file to read an RTF (BINARY) file.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Rulan
Posts: 56
Joined: Tue Nov 20, 2012 5:02 am

Re: Problems RichEdit

Post by Rulan »

OK??? :(

Could I know this behavior? If the rtf-file is smaller than 90kb it worked fine...

And...
:o 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
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Problems RichEdit

Post 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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Rulan
Posts: 56
Joined: Tue Nov 20, 2012 5:02 am

Re: Problems RichEdit

Post by Rulan »

Dear Francesco,
any news???
any ideas or workaround?
regards
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Problems RichEdit

Post 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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Rulan
Posts: 56
Joined: Tue Nov 20, 2012 5:02 am

Re: Problems RichEdit

Post 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
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Problems RichEdit

Post 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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply