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... » RTF Table problem [BUG][FIXED?]
BugConfirmed.gif  RTF Table problem [BUG][FIXED?] [message #1304] Sun, 26 February 2006 23:39 Go to next message
pivica is currently offline  pivica
Messages: 57
Registered: November 2005
Location: Belgrade, Serbia
Member
I have a problem when exporting QTF document with some table to RTF. Text and borders of table are wrong.

Here is an example

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);
}


everything is OK. But when I open rtf document in MS Word, there are no borders for table, and text in second row has wrong style.
Here is an image with a qtf text rendered with RichTextView and rtf rendered with Word:

index.php?t=getfile&id=76&private=0

I tried to find a bug (if it is a bug:) but I lost myself in EnclodeRtf class. So any help would be great.
  • Attachment: qtf_rtf.png
    (Size: 51.47KB, Downloaded 2199 times)

[Updated on: Wed, 03 May 2006 20:02] by Moderator

Report message to a moderator

Re: RTF Table problem [message #1312 is a reply to message #1304] Mon, 27 February 2006 18:35 Go to previous message
rylek is currently offline  rylek
Messages: 79
Registered: November 2005
Member
I hope to have fixed the above reported bug concerning RTF export of text formatting within tables. Table borders are still ignored (like they were before), I hope to fix this in the next few days. The patch is currently available over UVS and is sure to be included in this week's snapshot.

Regards

Tomas
Previous Topic: QTF to RTF, how?
Next Topic: How to add some text to RichTextview?
Goto Forum:
  


Current Time: Thu Mar 28 23:17:32 CET 2024

Total time taken to generate the page: 0.01114 seconds