Results 1 to 4 of 4

Thread: Help needed quick

  1. #1

    Thread Starter
    Addicted Member Bazza81's Avatar
    Join Date
    Apr 2001
    Location
    Nottingham, UK
    Posts
    203

    Exclamation Help needed quick

    I have an assignment for college due in 2 weeks time. I have a Microsoft
    Flexi Grid on my form and basically i want to print it. I have tried
    exporting is as a picture using the .picture method but I have no luck. If
    anyone can help with the .picture method or show me any other methods Iw
    ould be enternaly greaful. Oh one more thing, I would like to print the
    WHOLE grid, not just the visible area. Also if the grid is too big that it wont fit onto 1 sheet of A4 then how would I tll VB to split it up onto 2 or more pages.

    TIA
    Who needs rhetorical questions anyway?


    Bazza NET - The place you want to be!

  2. #2
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987
    I don't want to give away all the code (else you'll never learn anything) but you need to use the Printer object, the most important members being CurrentX, CurrentY, Print, and EndDoc...

    Code:
    Printer.CurrentX = Printer.Width / 2
    Printer.CurrentY = Printer.Height / 2
    Printer.Print MSFlexGrid1.TextMatrix(1, 1)
    Printer.EndDoc ' call EndDoc when you are done sending text to the printer
    {Insert random techno-babble here}

    {Insert quote from some long gone mofo here}

  3. #3
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188
    Is it connected to a database?

  4. #4

    Thread Starter
    Addicted Member Bazza81's Avatar
    Join Date
    Apr 2001
    Location
    Nottingham, UK
    Posts
    203
    No its not connected to a database. I will try the above code and thanks for the help. I have used the printer function a few times before so I will give it a go and get back to you :-)
    Who needs rhetorical questions anyway?


    Bazza NET - The place you want to be!

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