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
Solved

Too many print jobs when using PrintForm

Posted on 2013-01-10
3
327 Views
Last Modified: 2013-01-21
Everytime I print a batch of records I use the following code:

Do Until rec.EOF
  'code goes here
  frmRegistrationCSW.PrintForm
Loop

Unfortunately, when I have 900 records, it makes a "print job" for each form and overloads the printer.  Is there a way to loop through all 900 records and append them into one document?
0
Comment
Question by:al4629740
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
shorvath earned 500 total points
ID: 38764279
Several options...

Unfortunately the PrintForm Method only prints the object that calls it.

http://msdn.microsoft.com/en-us/library/aa244147%28v=vs.60%29.aspx

So, you could try to set you default printer to PDFcreator and save all 900 screen shots to PDF, combine the into one document, and then print it.

You could also try the Report Designer and print a Custom Report for each record and then print the entrie Report.

Maybe you could add more RAM to the printer to prevent the "overload",  od just get a printer that can handle the volume...
0
 

Author Comment

by:al4629740
ID: 38765114
Is there a way to continually paste into Word?
0
 
LVL 9

Expert Comment

by:shorvath
ID: 38767219
If your talking about taking the Form image and pasting the picture into a Word Document, that would be a big task.  Since I don't know what your Form looks like, I can't really say for sure what the best way to solve your problem would be.  I can assume that since you mentioned Word, working with the Visual Basic RichTextBox might be an option.  

The RichTextBox has quite a bit of formatting functionality, but no graphics capability.

Could you provide a snapshot of your Form?
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…

808 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