Solved

Too many print jobs when using PrintForm

Posted on 2013-01-10
3
330 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

Industry Leaders: 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 was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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 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…
Suggested Courses
Course of the Month11 days, 3 hours left to enroll

628 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