Solved

printing flexgrid on muliple pages

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSRS expression Issue finding a string 10 65
Visual Basic Excel Formatting error 4 81
Modifying Conditional Format from VBA code 3 48
Spell Check in VB6 13 95
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

947 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

20 Experts available now in Live!

Get 1:1 Help Now