Click here to Skip to main content
12,349,582 members (27,956 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# C#4.0 Word Microsoft , +
Hello,
I am making Rich text editor in C#, and i need one thing to implement...

It's MS Word like grid or table.

"How to make MS Word like grid in RichTextBox?"

So, I need to write function, what creates MS Word like resizeable and moveable spreadsheet with number of rows and columns in integer as input.

And I need to save this contetnt as RTF with text, it's RTF text editor.

If you don't know what I am asking how to make, click on this link: http://i.imgur.com/xGxfb.png[^]

PS: In image, sorry for unrecognizable labels, It's in Czech language Big Grin | :-D

Thank you,
VitekST

PS: No DataGridView please, I need to make it exactly same as MS Word Grid.

[edit]clickable link[/edit]
Posted 25-Nov-12 7:53am
VitekST1.2K
Edited 26-Nov-12 2:28am
v4
Comments
Sergey Alexandrovich Kryukov 25-Nov-12 15:04pm
   
MS Word is not a spreadsheet. What you show is a table.
--SA
Richard MacCutchan 26-Nov-12 5:00am
   
OK, you have edited your question, but you have not added any useful information. Did you look at the link I provided for you?
VitekST 26-Nov-12 8:13am
   
Yes, I do. But, how to save this into normal RTF file? (With text)

This solution isn't working, I have added into this control some rows, but data rows isn't showing.

But thank you for this solution,
VitekST

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

That's not a spreadsheet, it's a table or grid. Take a look at the DataGridView[^] class.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160621.1 | Last Updated 26 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100