Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RTF2 Leban's Control not displaying

Status
Not open for further replies.

Luzbel

IS-IT--Management
Apr 20, 2007
45
PR
I have a database where some fields are text with RTF (Rich Text Format). I need to display this text in a Report. I had originally used the Leban's now defunt RTF2 Control to display the RTF. I noticed that some RTF is not being displayed.

This is an example:

Code:
{\rtf1\ansi\ansicpg1252\uc1 \deff0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f1\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;}{\f2\fmodern\fcharset0\fprq1{\*\panose 02070309020205020404}Courier New;}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}{\stylesheet{\widctlpar\adjustright \fs20\cgrid \snext0 Normal;}{\*\cs10 \additive Default Paragraph Font;}{\s15\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \f1\fs18\cgrid \snext15 CoPath Text;}{\s16\nowidctlpar\adjustright \b\cf2 \sbasedon0 \snext16 \sautoupd CoPath Title;}{\s17\widctlpar\adjustright \f2\fs20\cgrid \sbasedon0 \snext17 Plain Text;}{\s18\widctlpar\tx4500\adjustright \f1\fs18\cgrid \sbasedon28 \snext18 \sautoupd Default Quick Text Style;}{\s19\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \f1\cgrid \sbasedon15 \snext19 Arial 12 Point;}{\s20\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \f1\fs22\cgrid \sbasedon17 \snext20 Arial 11 Point;}{\s21\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \f1\fs20\cgrid \sbasedon15 \snext21 Arial 10 Point;}{\s22\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \f1\fs28\cgrid \sbasedon15 \snext22 Arial 14 Point;}{\s23\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \fs18\cgrid \sbasedon15 \snext23 Times New Roman 9 Point;}{\s24\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \fs20\cgrid \sbasedon15 \snext24 Times New Roman 10 Point;}{\s25\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \fs22\cgrid \sbasedon15 \snext25 Times New Roman 11 Point;}{\s26\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \cgrid \sbasedon15 \snext26 Times New Roman 12 Point;}{\s27\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \fs28\cgrid \sbasedon15 \snext27 Times New Roman 14 Point;}{\s28\widctlpar\adjustright \f1\fs18\cgrid \sbasedon0 \snext28 Arial;}{\s29\widctlpar\tqc\tx4320\tqr\tx8640\adjustright \fs20\cgrid \sbasedon0 \snext29 footer;}{\s30\widctlpar\tqc\tx4320\tqr\tx8640\adjustright \fs20\cgrid \sbasedon0 \snext30 header;}}{\info{\title \'abCytoRev_Nest\'bb}{\author Susan Gannon}{\operator Susan Gannon}{\creatim\yr1999\mo6\dy24\hr11\min50}{\revtim\yr1999\mo6\dy24\hr11\min50}{\version2}{\edmins0}{\nofpages1}{\nofwords3}{\nofchars20}{\*\company DHT}{\nofcharsws24}{\vern89}}\margl1080\margr720\margt360\margb360 \widowctrl\ftnbj\aenddoc\makebackup\formshade\viewkind4\viewscale85\pgbrdrhead\pgbrdrfoot \fet0{\*\template C:\\pb\\dev\\word_fls\\dynaedit.dot}\sectd \sbknone\linex0\endnhere\titlepg\sectdefaultcl {\header \pard\plain \s30\widctlpar\tqc\tx4320\tqr\tx8640\adjustright \fs20\cgrid {\par }}{\footer \pard\plain \s29\widctlpar\tqc\tx4320\tqr\tx8640\adjustright \fs20\cgrid {\par }}{\headerf \pard\plain \s30\widctlpar\tqc\tx4320\tqr\tx8640\adjustright \fs20\cgrid {\par }}{\footerf \pard\plain \s17\widctlpar\adjustright \f2\fs20\cgrid {\par }\pard\plain \s29\widctlpar\tqc\tx4320\tqr\tx8640\adjustright \fs20\cgrid {\par }}{\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl2\pnucltr\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang{\pntxta )}}{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}\pard\plain \s16\nowidctlpar\adjustright \b\cf2 {\lang1024 {\rtf1\ansi\ansicpg1252\uc1 \deff0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f1\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;}{\f2\fmodern\fcharset0\fprq1{\*\panose 02070309020205020404}Courier New;}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}{\stylesheet{\widctlpar\adjustright \fs20\cgrid \snext0 Normal;}{\*\cs10 \additive Default Paragraph Font;}{\s15\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \f1\fs18\cgrid \snext15 CoPath Text;}{\s16\nowidctlpar\adjustright \b\cf2 \sbasedon0 \snext16 \sautoupd CoPath Title;}{\s17\widctlpar\adjustright \f2\fs20\cgrid \sbasedon0 \snext17 Plain Text;}{\s18\widctlpar\tx4500\adjustright \f1\fs18\cgrid \sbasedon28 \snext18 \sautoupd Default Quick Text Style;}{\s19\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \f1\cgrid \sbasedon15 \snext19 Arial 12 Point;}{\s20\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \f1\fs22\cgrid \sbasedon17 \snext20 Arial 11 Point;}{\s21\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \f1\fs20\cgrid \sbasedon15 \snext21 Arial 10 Point;}{\s22\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \f1\fs28\cgrid \sbasedon15 \snext22 Arial 14 Point;}{\s23\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \fs18\cgrid \sbasedon15 \snext23 Times New Roman 9 Point;}{\s24\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \fs20\cgrid \sbasedon15 \snext24 Times New Roman 10 Point;}{\s25\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \fs22\cgrid \sbasedon15 \snext25 Times New Roman 11 Point;}{\s26\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \cgrid \sbasedon15 \snext26 Times New Roman 12 Point;}{\s27\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \fs28\cgrid \sbasedon15 \snext27 Times New Roman 14 Point;}{\s28\widctlpar\adjustright \f1\fs18\cgrid \sbasedon0 \snext28 Arial;}{\s29\widctlpar\tqc\tx4320\tqr\tx8640\adjustright \fs20\cgrid \sbasedon0 \snext29 footer;}{\s30\widctlpar\tqc\tx4320\tqr\tx8640\adjustright \fs20\cgrid \sbasedon0 \snext30 header;}}{\info{\title (1)\'abpt_designator\'bb}{\author Susan Gannon}{\operator Susan Gannon}{\creatim\yr1999\mo6\dy24\hr13\min58}{\revtim\yr1999\mo6\dy24\hr13\min58}{\version2}{\edmins0}{\nofpages1}{\nofwords44}{\nofchars254}{\*\company DHT}{\nofcharsws311}{\vern89}}\margl1080\margr720\margt360\margb360 \widowctrl\ftnbj\aenddoc\makebackup\formshade\viewkind4\viewscale85\pgbrdrhead\pgbrdrfoot \fet0{\*\template C:\\pb\\dev\\word_fls\\dynaedit.dot}\sectd \sbknone\linex0\endnhere\titlepg\sectdefaultcl {\header \pard\plain \s30\widctlpar\tqc\tx4320\tqr\tx8640\adjustright \fs20\cgrid {\par }}{\footer \pard\plain \s29\widctlpar\tqc\tx4320\tqr\tx8640\adjustright \fs20\cgrid {\par }}{\headerf \pard\plain \s30\widctlpar\tqc\tx4320\tqr\tx8640\adjustright \fs20\cgrid {\par }}{\footerf \pard\plain \s17\widctlpar\adjustright \f2\fs20\cgrid {\par }\pard\plain \s29\widctlpar\tqc\tx4320\tqr\tx8640\adjustright \fs20\cgrid {\par }}{\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl2\pnucltr\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang{\pntxta )}}{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}\pard\plain \s15\widctlpar\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\tx9360\tx10080\adjustright \f1\fs18\cgrid {\cgrid0 { }}{\lang1024\cgrid0 Conventional Cervical Cytology (Pap Smear)}{\cgrid0 :\par }{\cgrid0 }{\lang1024\cgrid0 -SPECIMEN ADEQUACY: Satisfactory for evaluation}{\cgrid0 \par }{\cgrid0 }{\lang1024\cgrid0 - ATYPICAL SQUAMOUS CELLS OF UNDETERMINED SIGNIFICANCE (ASC-US).}{\cgrid0 \par }{\cgrid0 { }{ }}{\par }}\pard}{\par }}


Should display:

Code:
 Conventional Cervical Cytology (Pap Smear):
-SPECIMEN ADEQUACY: Satisfactory for evaluation
- ATYPICAL SQUAMOUS CELLS OF UNDETERMINED SIGNIFICANCE (ASC-US).
 
I have even tried with Microsoft Rich Textbox Control 6.0 (SP6) and get the same outcome.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top