Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Printing delays

Posted on 2002-07-24
2
Medium Priority
?
217 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
[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 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 200 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

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

722 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