cancel
Showing results for 
Search instead for 
Did you mean: 

Rendering RTF content

Former Member
0 Kudos

Hello,

We're reporting w/ RTF content and are finding that some parts of the "RTF" are not being rendered with Crystal Reports X1 R2. Specifically, bulleted list items.

The following RTF content renders properly in WordPad, but our Crystal Reports report ignores the bullets.

(Copy/Paste into a text document w/ .RTF as the file extension and open it in WordPad to see)

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}{\f1\fnil\fcharset2 Symbol;}}

{\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard{\pntext\f1\'B7\tab}{\*\pn\pnlvlblt\pnf1\pnindent0{\pntxtb\'B7}}\fi-720\li720\f0\fs20 Bulleted List Item\par

{\pntext\f1\'B7\tab}Second Line\par

}

Can anyone help?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello William,

Crystal Reports does not support all RTF formatting tags. There's an older note that outlines some of the supported and unsupported tags - [SAP Note 1214798 - What RTF tags are supported in Crystal Reports?|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]

This is an older document (CR8), but hasn't changed a great deal. There may be differences related to the addition of Unicode support with CR9 and up, but I couldn't find an updated list.

Here's the content of the note in case you have any trouble hitting the above link.

+++++++++++++++


Symptom 

In Crystal Reports (CR) 8 and later, Rich Text Format (RTF) is an available option for 'Text Interpretation' when formatting an object.

What RTF tags (also known as RTF control words) are supported in CR's RTF 'Text Interpretation'?

Resolution 

In CR, a list of supported RTF tags does not exist. However, this knowledge base article provides the following:

A list of RTF tags that are known to format correctly in CR.
A list of RTF tags that are known to not format correctly in CR.
Tips to troubleshoot if an RTF tag will format correctly in CR.
Where to find more information.
Background information.

List of RTF tags Known to Format Correctly in CR
------------------------------------------------
\fonttbl u00B7 font table generation
\colortbl u00B7 color table generation
\tab u00B7 fixed tabs (fixed meaning set on a horizontal line position)
\par u00B7 new paragraph...essentially a carriage return or line feed
\qr u00B7 paragraph alignment (qr is right aligned, qc is centered, ql is left aligned)
\ul u00B7 underline (ulnone is used to switch off underline)
\b u00B7 bold (b0 is used to switch off bold)
\fi2880 u00B7 indent first line of paragraph (in this example the indent is 2 inches)
\li1440 u00B7 left indent all (in this example the indent is 1 inch)
\strike u00B7 strikeout font
\emdash or \endash u00B7 both produce the smaller "-" dash (en-dash, a dash the width of the letter "n")
\emspace or \enspace u00B7 both produce the smaller " " space (en-space, a space the width of the letter "n")
\ldblquote u00B7 left double quotation mark (rdblquote produces a right double quotation mark)
\lquote u00B7 left single quotation mark (rquote produces a right single quotation mark)
\bullet u00B7 bullet mark


List of RTF tags Known to Not Format Correctly in CR
----------------------------------------------------
\pntext\f1\'B7 u00B7 bulleted indents (in this example a round bullet is used)
\sub u00B7 subscript
\super u00B7 superscript
\trowd u00B7 tables and any table, row, or cell-related tags
\shad u00B7 shadows
\animtext u00B7 animated text
\caps u00B7 apply capital letters
\uldb u00B7 double underline
\uldash u00B7 dash underline
\ulth u00B7 thick underline
\ulw u00B7 wave underline
\chshdng u00B7 character shading
\chdate u00B7 current date
\bkmrkstart or \bkmarkend u00B7 bookmark start or bookmark end
\pict, \wbitmap, etc. u00B7 pictures and any picture-related tags
\object u00B7 OLE objects and any OLE object-related tags
\do u00B7 Drawing objects and any Drawing object-related tags

Tips to Troubleshoot an RTF tag

-------------------------------

====================

WARNING:

The troubleshooting tips provided have not been tested with all RTF tags. The troubleshooting tips are provided as a probable scenario. It is not guaranteed that an RTF tag will format correctly in CR.

====================

Apply the format property of the embedded text of a text object in CR. If the formatting properties can be applied to the embedded text, then the corresponding RTF tag will format correctly in CR.

Apply the RTF tag in CR. If the RTF tag formats correctly in CR, then the tag to turn off the same property will format correctly.

Background
----------
RTF Text Interpretation reads formula or database syntax written as RTF tags and thereby apply the format property in CR. This feature is available in CR 8 and later.

The component that interprets RTF tags is Crpaig80.dll. This component renders text objects in Crystal Reports.

+++++++++++++++

Sincerely,

Dan Kelleher

christian_geyer
Explorer
0 Kudos

Hi, I tried to find updated information on the RTF support in CR2011 but had no luck. Does anyone know if and what changed?

Thanks,

Christian

former_member183750
Active Contributor
0 Kudos

In a word; nothing. There were no additions / changes to RTF support.

See:

http://scn.sap.com/thread/3237481

- Ludek

former_member183750
Active Contributor
0 Kudos

One more addition. The SAP Idea Place has this requested under the following link:

https://ideas.sap.com/ct/ct_a_view_idea.bix?c=A5E8DEA8-D886-4250-BA2B-039F7D32FFC0&idea_id=AC372995-...

Voting the idea up, is one way to get Program Mangers to consider better support for RTF.

- Ludek

christian_geyer
Explorer
0 Kudos

Thanks for the quick reply. We'll definitely vote for it!

Answers (0)