473,385 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

RichText File displayed in RichTextBox

Using VB2005 I am trying to display a .rft file in a richtextbox control.
The file contains an table and some other text. The file opens without a
problem in MS Word, but when I display it in the richtextbox control, the
text in the table is not in the correct columns. The text is shifted to the
right and extends outside the table.

Any Ideas

Also, can the PrintPreview control be used to view the .rtf file? I have
several reports that are .rtf files that are built by code and just want a
way for the user to view the created files.
Thanks

Thomas

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
Nov 21 '05 #1
1 1360
<th*****@msala.net> schrieb:
Using VB2005 I am trying to display a .rft file in a richtextbox control.
The file contains an table and some other text. The file opens without a
problem in MS Word, but when I display it in the richtextbox control, the
text in the table is not in the correct columns. The text is shifted to
the
right and extends outside the table.
Note that the richtextbox control doesn't provide full support for the
current RTF specification. It only supports a subset defined in an older
version of the specification, and it doesn't support tables.
Also, can the PrintPreview control be used to view the .rtf file?


No, that's not supported out of the box.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: larry mckay | last post by:
I need to display database information in columns for a .net application and it must look like a report that can be printed on paper. does anyone know how to display information in formatted...
2
by: Gary Shell | last post by:
I have a very ODD situation. I have a RichTextBox and a button. In the button click event I have the following: me.richtextbox1.SelectedText="test" Assuming I start with "aaaabbbbcccc" in...
3
by: rigamonk | last post by:
Is there a way to save richtext from a richtextbox into an access DB using vb.net? thanks patrick
8
by: Michael Rodriguez | last post by:
Does anyone know where I can find a cheap/free simple dialog popup editor that will allow me to edit with the RichTextBox control?
2
by: Rerard | last post by:
Hello. I need to be able to have a datagrid with richtext in a cell. THen on top of that the text has to be formatable via buttons. What I have been able to do is have a richtextbox with a word...
2
by: Lee | last post by:
Hi, When reading a number richtext strings back from a database c# adds the @ operator to the string, the effect being all the control characters are ignored and the string cannot be added to a...
0
by: giddy | last post by:
hi , i made a little RtfEncapsulator. Its a class thats called RichText , it has an RtfElementCollection which takes any class that exposes the IRtfElement interface. I managed to make an...
1
by: ooroboo | last post by:
i wont have made a simple program for my self , with 2 tabs a text document and a web browser , i have had a little look and could not find a way to open a Save As dialog for my Richtextbox is this...
4
by: Pubs | last post by:
Hi all, I have application being written in C# where I have to calculate the text pixel height and width of the line being typed in rich text box. I need to get the pixel height of the character...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.