473,395 Members | 1,571 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,395 software developers and data experts.

Rich Text Box/ API call question

59
Hi All,

I had come to think that .Net has ample of classes to fulfil almost every need of a developer.
I have a situation in which I need to insert a table in a rich text box. I tried googling and established that the rtf generated for making a table can be obtained by saving a table drawn in MS word using wordpad and then understand the rtf code generated for table. But that would give a fixed table, unmovable, unstrechable. I made a table in MS word, copied it and pasted it in my application's RichTextBox. The table was again the same type. So it is not just about generation of rtf and appending it to the rtf property of the RichTextBox it should be movable like it is in MSWord and also resizable. This means I need to insert it like an object. Can you please suggest a .Net work around. (Inserting as an object will also solve the problem of inserting images and any object.)
I gathered perhaps API call may help in this scenario but If API call is inevitable can you please suggest which API to call and how?

Thanks in Advance,

P.S. I am working with VS 2005 Windows App.
Sep 30 '08 #1
2 1406
madankarmukta
308 256MB
HI,

The problem you posted is quite interesting.. I will have to investigate over this ..

But before that Some doubts..

1) what is you client requirement says, Do they need to move/change the size of the table you are going to dispaly in Rich text box.. ?
2) why don't you simply use datagrid instead of Richtext box.. so that the client will view the whole data.. can edit anything.. I hope you are much familiar with the datagrid functionaity..

Please Reply.

Thanks!
Sep 30 '08 #2
babai28
59
HI,

The problem you posted is quite interesting.. I will have to investigate over this ..

But before that Some doubts..

1) what is you client requirement says, Do they need to move/change the size of the table you are going to dispaly in Rich text box.. ?
2) why don't you simply use datagrid instead of Richtext box.. so that the client will view the whole data.. can edit anything.. I hope you are much familiar with the datagrid functionaity..

Please Reply.

Thanks!

Hi Madan,

Thank you very much for your interest in my problem.
Regarding your questions here is the answer,
The client requirement is nothing but the development of a window portal that will consist of publication of hand written reports.
Therefore, on technical grounds it has been taken up as, development of a form consisting of fully functional editor control. As you can percieve, datagridview can only display tabular data which may form a part of the report. The report will not always and only consist of tabular data. Therefore the rich text box that I am using will have to be able to insert pictures, objects and tables. Every thing that a complete report consists of. I also have to look up how to enable the rich text printing of the RTB(Rich Text Box) contents.
I wish to enter a table in the rich text box on a tool strip button click just like the MS word does. I understand, moving the table may be a very difficult thing to do. But at least, the user should be able to resize it so that the word wrap and other functionalities get worked up. Moving can be done using the editing keys and all.
I hope I have presented the honest and clear picture to you now.
Let me know if anything else need to be clarified.

Regards,
Siddhartha
Oct 1 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Tom_ZC | last post by:
I'm writing a find and replace routine for a text editor I'm working on. The editor has a rich text box on the main form (frmMain). The find/replace form is modeled after the one in Word '97/2K. ...
1
by: IkBenHet | last post by:
Hello, I found this script to create a simple rich text form (http://programmabilities.com/xml/index.php?id=17): <html> <head> <title>Rich Text Editor</title> </head> <body>
2
by: VB Programmer | last post by:
I want to create an email message with a HTML body and email it out. I know how to create/send the email (for the most part.) 1. Any ideas or examples of using an ASP.NET rich text editor so...
6
by: Brad Allison | last post by:
Hi, I guess I am not understanding something and I have been searching Help in VB, newgroups, etc. I have a simple application that contains just over 300 rich text files (these are breed...
2
by: bobdydd | last post by:
Hi All In the plan text version of a Memo field you can easily add a date by pressing Ctrl+Colon which makes life easy for the end user. However, if the Memo field is set to the Rich Text...
2
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, Sorry for the long-winded dissertation - but, I have an application where I need to write text to a rich text box using a common method, callable from anywhere in my application. The...
4
by: Neil | last post by:
Just found out that the Microsoft Rich Textbox does not support full text justification, since it's based on Version 1.0 of the RichEdit Window Class, and full text justification is only available...
16
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might...
11
by: ARC | last post by:
Hello all, My app has an e-mailing feature where you can e-mail reports, as well as a bulk e-mail feature for e-mailing all customers (as separate e-mails). I allow the user to set the subject...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.