Results 1 to 3 of 3

Thread: Printing MSFlexgrid over multiple pages

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2007
    Posts
    35

    Printing MSFlexgrid over multiple pages

    Hello,

    Ive almost finished a project ive been working on, which involves taking in a fair bit of data into an msflexgrid control.

    I then want to be able to print out this flexgrid along with some other information, which ive been able to do using the following :-

    Printer.PaintPicture MSFlexGrid7.Picture, 800, 1300


    I thought everything was fine untill today i found out i could have up to 30 entrys on this document. And as you can probably work out the paintpicture command just prints as far as it can to the end of the page then nothing else.

    Ive been racking my brain today to try and work out how to get the program to either print up to a certain row then switch to a 2nd page or detect on its own when its approaching the end of the page and begin a 2nd page with the remaining contents, but so far ive not found anything.

    Ive tried searching the net but havent really found anything which could help.

    I dont mind changing the print process of the flexgrid if it allows me to print onto a second page.

    If anyone can help i would be very gratefull.

    Thanks!

    PS (As a note this msflexgrid also contains VbCR in certain cells)
    Last edited by ExeCuteUK; Jun 12th, 2008 at 08:13 AM.

  2. #2

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2007
    Posts
    35

    Re: Printing MSFlexgrid over multiple pages

    RhinoBull, Thanks for your Response.

    I have been trying something like that, which creates the grids, but because my grid contains a fair amount of VbCR characters it messes the entire print out, which is why I just used paint picture.


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