Solved

Drawing a table on my form

Posted on 2015-01-30
2
133 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Groupbox Control ? 2 27
ASP.NET/VB: Convert Date and Time to YYYY-MM-DDTHH:MM:SS 3 29
UDP Data Capture Thread Issue 7 29
vb.net sendkey 4 17
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

680 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