Solved

Printing delays

Posted on 2002-07-24
2
213 Views
Last Modified: 2010-05-02
When I print using
vObjPrint.Print sContents
where sContents is a string it can take up to half an hour for the print job to spool even though there's only a few hundred bytes of data. Here's the code..

   Set vObjPrint = Printer '//unc/printer
   vObjPrint.FontName = sFont 'Courier New
   vObjPrint.Orientation = vbPRORLandscape
   vObjPrint.FontSize = 8  
   vObjPrint.Print sContents  
0
Comment
Question by:innovate
2 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 50 total points
ID: 7176209
You need to add:
vObjPrint.EndDoc

At the end.

Anthony
0
 
LVL 2

Author Comment

by:innovate
ID: 7187094
I haven't had the time to try it but I'll trust you, got a more impotant Q
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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…

770 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