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... » 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 Go to previous message
fuqr is currently offline  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!

 
Read Message
Read Message
Read Message icon7.gif
Previous Topic: Loading Image into qtf
Next Topic: Random missing separating lines(V or H) in report table display
Goto Forum:
  


Current Time: Fri Apr 19 08:32:11 CEST 2024

Total time taken to generate the page: 1.04940 seconds