Solved

printing flexgrid on muliple pages

Posted on 2006-06-26
3
189 Views
Last Modified: 2010-04-30
Hi Experts.

I have a flexgrid on vb6 and want to print the contents of it. I currently us the code: -

  Printer.PaintPicture MSFlexGrid1.Picture, 0, 0
  Printer.EndDoc

but this only prints 1 page. Sometimes the flexgrid has so much data it has to be printed on multiple pages. How do I go about doing this please.

Many Thanks
Lee
0
Comment
Question by:ljhodgett
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Expert Comment

by:lunchbyte
ID: 16986410
0
 

Author Comment

by:ljhodgett
ID: 16986678
Hi Lunchbyte

Thanks for getting back to me. I've tried the example but all it prints is 225 records printed!!!!

Cheers
Lee
0
 
LVL 5

Accepted Solution

by:
lunchbyte earned 125 total points
ID: 16986729
OK. What I have done in the past is to loop through each row and populate to the reporting tool (use whatever you use). This will allow you to control everything you need to make a nice format and even put column headers on each page.

Before you resort to this amount of work, wait and see if someone has a better code that you can try. I know there is a quick and dirty one out their.

I found one more thing you could try. This is one of those quick and dirty code that should work.

http://www.codeguru.com/forum/archive/index.php/t-324882.html


0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question