Results 1 to 7 of 7

Thread: How to Print MSHFlexgrid data

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2008
    Posts
    20

    How to Print MSHFlexgrid data

    Hi there,
    Here's another problem of mine. Please help me on how I can Print the data on my MSHFlexGrid.

    Thanks in advance.I want to fully understand how it will get data from the MSHFlexgrid and print it.

  2. #2
    Lively Member
    Join Date
    Sep 2007
    Location
    Texas
    Posts
    98

    Re: How to Print MSHFlexgrid data

    What exactly do you want to do? for eg - get the data into the grid and then push a button to print - or must the flexgrid act like a "template" for a printed report?
    Working in VB2005 and SQL2005

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jun 2008
    Posts
    20

    Re: How to Print MSHFlexgrid data

    Hi Sunshine,
    If I already have a display in my MSHFLEXGRID, How will I be able to print all of its contents in my printer?

    thanks!

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: How to Print MSHFlexgrid data

    As this is not related to databases, thread moved from Database forum to VB6 forum

  5. #5

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Jun 2008
    Posts
    20

    Re: How to Print MSHFlexgrid data

    Hi Zeezee,
    Apparently I have already tried some of it but somehow, I cannot make it work? Really need further help to have at least a basic working code that prints all the data on the MSHFlexGrid including the header and the data which are not shown or hidden in the MSHFlexgrid table... Thanks!

    Other experts, please help. Thank you very much

    regards,
    dreddski

  7. #7
    PowerPoster Code Doc's Avatar
    Join Date
    Mar 2007
    Location
    Omaha, Nebraska
    Posts
    2,354

    Re: How to Print MSHFlexgrid data

    Quote Originally Posted by dreddski
    Hi Zeezee,
    Apparently I have already tried some of it but somehow, I cannot make it work? Really need further help to have at least a basic working code that prints all the data on the MSHFlexGrid including the header and the data which are not shown or hidden in the MSHFlexgrid table... Thanks!

    Other experts, please help. Thank you very much.
    What you are saying then is that PrintForm or equivalent will not work and that you want all the cells to show on the hard copy. I believe in that case, you will have to use the printer object and oodles of Printer.Print commands in a nested loop that collects the values in each row, moving across all columns, one line at a time. Not easy, but feasible.
    Doctor Ed

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