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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grid Lines in Rich Text Control 2

Status
Not open for further replies.

TrevHatib

Programmer
Nov 27, 2000
6
GB
Anyone know how to display grid lines using the rtf control? I could use Word automation but I don't really want the overhead.
 
The rtf control is not a grid control and so you cannot have grid lines.

If you want grid lines, use a grid control - DBGrid, or MSFlexGrid

Simon
 
I think that the point has been missed here. I have rtf docs which contain tabular information (maybe calling them 'grid lines' was misleading) which I need to be able to view from a VB app. Now the RTF control, shipped with VB 6 running on Win95, does not process the tables, so the docs can look a bit messy (NOTE that the latest version of the RFT ctrl running under Win2000 would do the job nicely).

This is a generic problem that I expect to continue to get in the future. I am loathed to use an OLE container but I would like my docs to be easily and efficiently embedded in the app. Surely someone has come across this before?

Trevor
 
You might try experimenting with this as I have used it with some success: since you compose your documents in MS-Word, draw a table in a document and save the file in RTF format. That should give you whatever grid lines you need in the RTF control.

I use Word 2000 and the generic VB6 RTF control under Win98 SE. Looks great.

If you are already doing that, I will have to admit my confusion. Aren't the columns lining up correctly?

VCA.gif

Alt255@Vorpalcom.Intranets.com
 
I find alt255's comments a bit strange. Is there something obvious that I am missing here? The rtf Active X control in VB6 (with SP4 installed) does not seem to handle table related rtf codes under Win95. Can anyone tell me otherwise?
 
You are correct. The Rich Text Control that ships with VB6 does NOT handle table information. It converts that information to tabular text. Why they did this I am not sure. It seems quite retarted to me.
 
shouldn't you be able to just copy the rich text .dll from a Win2K or 98se system onto your computer. If it works in those environments there must be a newer version of that control on those systems. If that works the newer control would go with your app when you package it and the lines should show up on any computer it is installed to. Ruairi

Could your manufacturing facility benefit from real time process monitoring? Would you like your employees to be able to see up to the minute goal and actual production?
For innovative, low cost solutions check out my website.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top