Solved

Too many print jobs when using PrintForm

Posted on 2013-01-10
3
329 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
[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
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

710 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