473,624 Members | 2,119 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.c om<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
Nov 21 '05 #1
1 1370
<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
1119
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 columns using a RichTextBox? is the RichTextbox the proper control to use? Does anyone have any sample code to display database row data in formatted columns in a rich text box?
2
2359
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 the richtext box and I place the caret between the a and b and hit the button. I get "aaaatestbbbbcccc" as expected. Then I click between the b and the c and hit the button I get:
3
2022
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
1825
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
2359
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 style toolbar for formatting. And I have been able to get a datagrid so text from word can be pasted into it with formatting. But I cant seem to get over that last hump of being able to format/edit the text direclty in the cell. Also for some reason...
2
1895
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 richtextbox. I'm using a stored procedure to get the data and the data type is varchar in the database and stored procedure. Any assistance on suppress c# from adding the @ operator would be much appreciated. Code shown below:
0
1159
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 RtfTextElement which works really well. So to add text this has to be done: Code:
1
1248
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 possible or how should it be done? ( i wont the Save as dialog to save the richtextbox.text as a file with an option to change the file name) thanks for your help/ time
4
4707
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 next to cursor and the total length of the row where the cursor is. Rich text box might have different fonts with different styles I need to get the length in pixels. Can some one let me know an easy method ?
0
8172
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8677
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8620
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6110
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5563
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4079
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1482
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.