Solved

Drawing a table on my form

Posted on 2015-01-30
2
125 Views
Last Modified: 2015-01-30
Experts, my application generates word documents for internal use. The data in the documents is put into a word table similar to what is shown in the picture. As you can see from my form I have given the use the ability to format certain aspects of the appearance of the tables in the document that will be produced. Currently to provide the preview I create an instance of word and actually build the table according to the user selections. Then select and copy the table and then create a bipmap from the image on the clip board. What I dont like about this is having to wait for word and the image is not a very good image. Could someone give me some examples of how I could accomplish this by drawing this table directly on the form and do away with the process I am currently using?

Thanks in advance...

Form View
0
Comment
Question by:Basicfarmer
2 Comments
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 40580568
Have you considered using the DataGridView?  It can be formatted to some degree.

Another option would be to use a TableLayoutPanel (with Labels in it) which can handle those rows at the top and bottom that span multiple columns.
0
 

Author Closing Comment

by:Basicfarmer
ID: 40581041
Mike, thanks for the advice. I have looked at the table layout control and that looks like the way to go.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now