Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
mirek is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem copying from RichEdit to Word
Next Topic: Allow line-break after '-' sign within a word?
Goto Forum:
  


Current Time: Sun May 12 05:04:26 CEST 2024

Total time taken to generate the page: 0.02058 seconds