trollacious
Programmer
Using the Rich Text Box control, I display a RTF formatted string put together by the program. I designed the RTF form outside the program (saved in WordPad to avoid MS Word RTF codes), then copied the RTF codes directly from a text editor into the program to plug in the desired data, with vbCrLf new lines in the appropriate spots. The format in the RTF control doesn't look the same on the screen as the file that's written with the exact same string.
The character string is generated once by the function, then put into the RTFbox.TextRTF and the file on the computer. The output file opens fine in WordPad and MS Word 2000, and looks exactly like I want, even though the RTF box loses some of the table formatting. The only character I couldn't seem to add to the RTF string was ASCII 0, but that's understandable since VB strings are ASCII 0 terminated, too. I don't think that's the problem, though, since the file on the hard drive displays fine in both Word and WordPad.
Any ideas what might be causing the problem, and how to fix it?
Lee
The character string is generated once by the function, then put into the RTFbox.TextRTF and the file on the computer. The output file opens fine in WordPad and MS Word 2000, and looks exactly like I want, even though the RTF box loses some of the table formatting. The only character I couldn't seem to add to the RTF string was ASCII 0, but that's understandable since VB strings are ASCII 0 terminated, too. I don't think that's the problem, though, since the file on the hard drive displays fine in both Word and WordPad.
Any ideas what might be causing the problem, and how to fix it?
Lee