Solved

printing flexgrid on muliple pages

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Add a task in Outlook from access 11 39
vb6 connector to mongodb 2 79
Spell Check in VB6 13 112
Automatically generate a pdf file from an excel file and email out everyday 2 37
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

815 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

10 Experts available now in Live!

Get 1:1 Help Now