Solved

print a big recorset

Posted on 2000-03-29
1
138 Views
Last Modified: 2010-05-02
I have a big recordset that retrieves many data from a few tables of my database.
When I select the first and last client of the client table from whom I wish to print invoices the program stops responding.
When I select just a few clients it prints allright.
I'm using a matrix printer and VB 6.0 with the print object.
Is the buffer of the printer to short for the amount of data?
Is the recordset to big?
Should I put those records in a temporary table and print each of a time instead of a recordset?

Thanks
0
Comment
Question by:asimoes
1 Comment
 
LVL 4

Accepted Solution

by:
gcs001 earned 100 total points
ID: 2667206
It could very well be that the printer's memory buffer is too small to handle large amounts of data at a time.

Try to use the Printer.EndDoc method more often to send the current data to the printer.

Also look at using the Doevents() function in your code while printing.

Regards,
Grant.
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…

770 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