String GetQtfReport() { String qtf; // Styles qtf << "[2 $$0,0#00000000000000000000000000000000:Default]"; qtf << "[=Q~~~473;*+117 $$1,0#00000000000000000000000000000001:Title]"; qtf << "[Q*+117 $$2,0#00000000000000000000000000000002:Title1]"; qtf << "[Q2 $$5,0#00000000000000000000000000000005:text]"; // Qtf text qtf << "[s1 " << "Report" << "&][s5 &]"; qtf << "[s2 " << "Results of calculation" << "&][s5 &]"; qtf << "[s5* Component participation in mixture:] [s5 &&]"; // Qtf table qtf << "{{5762:4238<128;>1415;"; qtf << "l4/25r4/25t4/25b4/25 [s5;= Component name]"; qtf << ":: [s5;= Description]"; qtf << ":: [s5;= Some comp]"; qtf << ":: [s5;= bla bla]"; qtf << "}}&"; return qtf; } ToRtf1::ToRtf1() { Sizeable().Zoomable(); CtrlLayout(*this, "Qtf"); String qtf = GetQtfReport(); String rtf = EncodeRTF(ParseQTF(qtf), CHARSET_WIN1250); SaveFile("C:/temp/rtf1.rtf", rtf); report.HSizePos(5, 5).VSizePos(5, 5); report.SetQTF(qtf); }