Home » U++ Library support » RichText,QTF,RTF... » Failed to set String format in report from SQLite3 
	
		
		
			| Failed to set String format in report from SQLite3 [message #12984] | 
			Mon, 03 December 2007 04:19   | 
		 
		
			
				
				
				
					
						  
						fuqr
						 Messages: 16 Registered: July 2007  Location: Singapore
						
					 | 
					Promising Member  | 
					 | 
		 
		 
	 | 
 
	
		My problem occured as in the following code: 
===================================================== 
String r_title; 
try 
{ 
    SQL & ::Select(DESCRIPTION).From(CASES).Where(ID == dtid); 
    while(SQL.Fetch()) r_title = SQL[0]; 
}					 
catch(SqlExc &e) 
{ 
	Exclamation("[* " + DeQtfLf(e) + "]"); 
} 
 
Report r; 
Image img = Images::LargeIcon;      
r.Header("[A2> Page $$P"); 
RichObject CreateImageObject(const Image& img, int cx = 10, int cy = 10);   
r.DrawImage(10, 10, 500, 500, img);          
 
r << " && [*= " << r_title;  // problem here ??? 
 
r << "&& [_= Analysis Report]&"; 
String tab; 
........ 
r << tab; 
Perform(r);	 
 
========================================== 
"r_title" failed to display as defined:"Centeralignment & Bold". 
Even if I trid: 
r << "&& [=* " << AsQTF(ParseQTF(r_title)); and 
r << " [=* TEST CASE" << AsString(Format("%s",r_title));   
  
But the constant text is OK. 
 
If there are some String format commands can be deployed here? 
 
Thanks in advance! 
 
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
	| 
		
 |  
	| 
		
 |   
Goto Forum:
 
 Current Time: Tue Nov 04 05:23:15 CET 2025 
 Total time taken to generate the page: 0.09044 seconds 
 |