Solved

print a big recorset

Posted on 2000-03-29
1
141 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
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…
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…

717 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