nice_guy_in_stj
10-25-2004, 11:25 AM
Here's the problem : My boss wants me to create a file for a lab order. This lab order should be small enough to fit on a piece of paper 5" by 8". Now for the annoying part; some clients don't have Word installed so the file must be a Rich Text Format file. Furthermore there must be a black rectangle surrounding the lab order.
I'm using a RichTextBox control to read in a rtf file I created in word. The file has a bunch of variables, and when it comes to creating the lab order I simply do a 'search/replace' of the variables with the propper values. For some reason I can see the line shapes that surround the lab order when viewing it in Word, but not when viewing it in the RichTextBox. Consequently, when I go to rtb.SaveFile "NewLabOrder.rtf", the new lab order file does not have the square border anymore.
I opened the rtf file in Notepad to discover the {\shp} tag which is what creates the lines. I can't seem to get the RichTextBox to reconize that the {\shp} tag means it should draw a line.
My question is why does the RichTextBox controle not pick up on the {\shp} tag, and how else could I create a border around the labOrder ?
I'm using a RichTextBox control to read in a rtf file I created in word. The file has a bunch of variables, and when it comes to creating the lab order I simply do a 'search/replace' of the variables with the propper values. For some reason I can see the line shapes that surround the lab order when viewing it in Word, but not when viewing it in the RichTextBox. Consequently, when I go to rtb.SaveFile "NewLabOrder.rtf", the new lab order file does not have the square border anymore.
I opened the rtf file in Notepad to discover the {\shp} tag which is what creates the lines. I can't seem to get the RichTextBox to reconize that the {\shp} tag means it should draw a line.
My question is why does the RichTextBox controle not pick up on the {\shp} tag, and how else could I create a border around the labOrder ?