Solved

Too many print jobs when using PrintForm

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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 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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now