Home » U++ Library support » RichText,QTF,RTF... » Insert text data from file
Re: Insert text data from file [message #40926 is a reply to message #40916] |
Tue, 08 October 2013 20:04 |
|
mirek
Messages: 13976 Registered: November 2005
|
Ultimate Member |
|
|
iST1 wrote on Mon, 07 October 2013 12:49 | I'm trying to load txt file with transform base code LoadImage, but occured 2 problem:
1) it seems that QTF doesn't work with RichPara, but i use it for create new line (&);
|
RichPara represents a 'line' (in fact, a paragraph, but I guess in this context you mean that). Therefore, if you want more paragraphs, you need to Cat them...
RichText clip;
while (!fi.IsEof()) {
RichPara para;
RichPara::CharFormat fmt;
para.Cat(fi.GetLine()), fmt);
clip.Cat(para);
}
}
(Alternatively, there not much wrong creating the whole clip in Qtf, not using RichPara).
Mirek
|
|
|
Goto Forum:
Current Time: Sun May 12 05:04:26 CEST 2024
Total time taken to generate the page: 0.02058 seconds
|