Problems RichEdit

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

Problems RichEdit

Postby Rulan » Tue Nov 05, 2013 4:13 am

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 12278 times

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

Re: Problems RichEdit

Postby FrancescoT » Tue Nov 05, 2013 1:26 pm

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

Postby Rulan » Wed Nov 06, 2013 3:04 am

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 433 times

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

Re: Problems RichEdit

Postby FrancescoT » Wed Nov 06, 2013 10:33 am

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

Postby Rulan » Thu Nov 14, 2013 10:00 am

Any knews?

regards

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

Re: Problems RichEdit

Postby FrancescoT » Fri Nov 15, 2013 1:00 pm

... 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

Postby Rulan » Mon Nov 18, 2013 2:19 am

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: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Problems RichEdit

Postby FrancescoT » Mon Nov 18, 2013 11:00 am

... 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

Postby Rulan » Tue Nov 19, 2013 7:06 am

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: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Problems RichEdit

Postby FrancescoT » Tue Nov 19, 2013 1:20 pm

... 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

Postby Rulan » Fri Nov 29, 2013 1:49 am

Dear Francesco,
any news???
any ideas or workaround?
regards

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

Re: Problems RichEdit

Postby FrancescoT » Mon Dec 02, 2013 11:55 am

... 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

Postby Rulan » Thu Dec 05, 2013 9:11 am

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: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Problems RichEdit

Postby FrancescoT » Thu Dec 05, 2013 11:26 am

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


Return to “Technical Support”

Who is online

Users browsing this forum: GigabyteSystemsLLC and 42 guests