Solved

printing flexgrid on muliple pages

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

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

Suggested Solutions

Title # Comments Views Activity
Export Data to Different .csv Files 26 121
Automatic Email Reminder 4 70
VB6 - Scroll Mouse wheel on Picturebox 13 93
Remove Exif Orientation before adding image to db 9 38
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.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

679 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