Results 1 to 2 of 2

Thread: Printing a table

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2010
    Posts
    5

    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

  2. #2
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148

    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
  •  



Click Here to Expand Forum to Full Width