• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

Printing delays

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
innovate
Asked:
innovate
1 Solution
 
Anthony PerkinsCommented:
You need to add:
vObjPrint.EndDoc

At the end.

Anthony
0
 
innovateAuthor Commented:
I haven't had the time to try it but I'll trust you, got a more impotant Q
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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now