Ok I gotta apologize for that. NOT quiet what I wanted
as far as formatting
goes.

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf
Of Steve Welborn
Sent: Thursday, May 25, 2006 12:50 PM
To: [email protected]
Subject: [ADVANCED-DOTNET] RTF Editor and RTF Table
Generation

Good Afternoon,

        I am looking for an Editor for RTF. Not a
wysiwyg editor where it's
a basic RTF Control, I mean an editor for the RTF code
where you can see the
code and output at the same time and make changes.

        I am working on a project now that is calling
for a table in my
documents. The table will have to be generated via
code and although I have
the rtf code to do it, I can't seem to decipher where
the row/cell starts
and ends.

        the rtf code I have is from me creating it
manually in Word then
opening it up in notepad and copying all but the
header and last '}'. I
tried to parse it out the best I could into what would
be the Header of the
table and the row/cell below that.

       Here is what I got so far..I hope this formats
well *crosses fingers*



     HEADER:

     CELL1 (I think)

     \\trowd
\\irow0\\irowband0\\ts16\\trgaph115\\trrh252\\trleft-115\\trbrdrt\\brdrs\\br
drw30   \\trbrdrl\\brdrs\\brdrw30
\\trbrdrb\\brdrs\\brdrw30
\\trbrdrr\\brdrs\\brdrw30   \\trbrdrh\\brdrs\\brdrw30
\\trbrdrv\\brdrs\\brdrw30


\\tpvpara\\tphpg\\tposx2405\\tposnegy-6\\tdfrmtxtLeft180\\tdfrmtxtRight180\\
trftsWidth3\\trwWidth5140\\trftsWidthB3\\trftsWidthA3\\trpaddl115\\trpaddr11
5\\trpaddfl3\\trpaddft3\\trpaddfb3\\trpaddfr3\\tbllkhdrrows\\tbllklastrow\\t
bllkhdrcols\\tbllklastcol   \\clvertalc\\clbrdrt

     \\brdrs\\brdrw30   \\clbrdrl\\brdrs\\brdrw30
\\clbrdrb\\brdrs\\brdrw30
\\clbrdrr\\brdrs\\brdrw30
\\clcbpat17\\cltxlrtb\\clftsWidth3\\clwWidth2609\\clcbpatraw17
\\cellx2494\\clvertalc\\clbrdrt\\brdrs\\brdrw30
\\clbrdrl\\brdrs\\brdrw30
\\clbrdrb\\brdrs\\brdrw30 \\clbrdrr\\brdrs\\brdrw30


\\clcbpat17\\cltxlrtb\\clftsWidth3\\clwWidth2531\\clcbpatraw17
\\cellx5025\\pard\\plain \\qc
\\li0\\ri-103\\widctlpar\\intbl\\tx1575\\pvpara\\phpg\\posx2405\\posnegy-6\\
dxfrtext180\\dfrmtxtx180\\dfrmtxty0\\aspalpha\\aspnum\\faauto\\adjustright\\
rin-103\\lin0\\pararsid9326325\\yts16


\\fs24\\lang1033\\langfe1033\\cgrid\\langnp1033\\langfenp1033
{\\b\\f38\\cf8\\insrsid9326325 Profile
Name}{\\b\\f38\\cf8\\insrsid9326325\\charrsid12210558
\\cell   }}



     CELL2 (I think)

     \\trowd
\\irow0\\irowband0\\ts16\\trgaph115\\trrh252\\trleft-115\\trbrdrt\\brdrs\\br
drw30   \\trbrdrl\\brdrs\\brdrw30
\\trbrdrb\\brdrs\\brdrw30
\\trbrdrr\\brdrs\\brdrw30   \\trbrdrh\\brdrs\\brdrw30
\\trbrdrv\\brdrs\\brdrw30


\\tpvpara\\tphpg\\tposx2405\\tposnegy-6\\tdfrmtxtLeft180\\tdfrmtxtRight180\\
trftsWidth3\\trwWidth5140\\trftsWidthB3\\trftsWidthA3\\trpaddl115\\trpaddr11
5\\trpaddfl3\\trpaddft3\\trpaddfb3\\trpaddfr3\\tbllkhdrrows\\tbllklastrow\\t
bllkhdrcols\\tbllklastcol   \\clvertalc\\clbrdrt

     \\brdrs\\brdrw30   \\clbrdrl\\brdrs\\brdrw30
\\clbrdrb\\brdrs\\brdrw30
\\clbrdrr\\brdrs\\brdrw30
\\clcbpat17\\cltxlrtb\\clftsWidth3\\clwWidth2609\\clcbpatraw17
\\cellx2494\\clvertalc\\clbrdrt\\brdrs\\brdrw30
\\clbrdrl\\brdrs\\brdrw30
\\clbrdrb\\brdrs\\brdrw30 \\clbrdrr\\brdrs\\brdrw30


\\clcbpat17\\cltxlrtb\\clftsWidth3\\clwWidth2531\\clcbpatraw17
\\cellx5025\\pard\\plain \\qc
\\li0\\ri-103\\widctlpar\\intbl\\tx1575\\pvpara\\phpg\\posx2405\\posnegy-6\\
dxfrtext180\\dfrmtxtx180\\dfrmtxty0\\aspalpha\\aspnum\\faauto\\adjustright\\
rin-103\\lin0\\pararsid9326325\\yts16


\\fs24\\lang1033\\langfe1033\\cgrid\\langnp1033\\langfenp1033
{\\b\\f38\\cf8\\insrsid9326325 Profile
Name}{\\b\\f38\\cf8\\insrsid9326325\\charrsid12210558
\\cell
}{\\b\\f38\\cf8\\insrsid9326325
Position}{\\b\\f38\\cf8\\insrsid9326325\\charrsid12210558
  \\cell }


     I bolded the actual data that should be in there.
Now this is just the
first row of the table that is the Header. Can anyone
tell me whether I
parsed out these two cells the right way? If I can
figure this out I think
the rest of the rows should be exactly like this
right?

    Is there an easier way to create a table for rtf
via code? This isnt
going to be the only thing in the document. I have
about 31 other rtf files
that are going to be going in there, but they are
simple copy and paste.
This is the only code generated one.

Thanks and have a good day.


Steve Welborn
Software Engineer
BitWise Solutions
317.805.4376 x227
email:     [EMAIL PROTECTED]
website: http://www.bitwisesolutions.com




---------------------------------
Blab-away for as little as 1Ā¢/min. Make  PC-to-Phone
Calls using Yahoo!
Messenger with Voice.

===================================
This list is hosted by DevelopMentorĀ®
http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to