|
-
Jun 14th, 2014, 05:57 AM
#1
Thread Starter
New Member
Printing a table
Hi,
I have no previous experience of using VB to print information on paper. I have however been able to find examples for normal text printing and how to calculate the page sizes etc.
I would like to be able to print a table of data and see the text field border. This would be simular to what one would see when printing from Excel with the individual cell boxes formatted to the desired sizes, with correctly spaced columns.
Many thanks
-
Jun 14th, 2014, 06:23 AM
#2
Re: Printing a table
You need to write a function that draws a single cell of a table with the border style, location and text you want. Then making a table is just a case of calling this function many times in the PrintPage event... There's an article here that will give you the background and this class library has a heap of printing code including the ability to print tables...
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|