Solved

printing flexgrid on muliple pages

Posted on 2006-06-26
3
178 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
  • 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now