Solved

Print to a file

Posted on 1998-07-31
2
125 Views
Last Modified: 2010-05-03
I developed an application which produces, as output, a printed page.  It is a complicated page containing both graphics and text.  The Printer object is used extensively throughout the application, sometimes in very tricky ways.  It took me a lot of sweat to reduce the printer to submission and coerce it to do what I wanted.  So far so good.

User suggests that it would be nice if multiple copies of the output printed page could be pritned, and it was mentioned that one way to do this would be to "print to file", then the file could be sent to the printer via the usual Windows print engine, with among other options, "number of prints".

Do I have to go through my entire application, replacing the printer object?  There are peculiarities to the printer object which a "file" may not care about.

Alternatively, there may be a way within VB to print multiple times.

What is the best way to approach this?  I would appreciate some good constructive guidance.
-- Norm
0
Comment
Question by:posnorm
2 Comments
 
LVL 6

Accepted Solution

by:
alamo earned 100 total points
Comment Utility
Have you tried setting the Copies property of the Printer object? That should cause multiple copies of the page to be printed, although if the output is multiple pages collation could at times be a problem.
0
 

Author Comment

by:posnorm
Comment Utility
alamo:  Good grief!  What a simple thing!  I am really embarrassed.  I should have looked over the properties list for the printer object.  Thank you very much.
0

Featured Post

Highfive Gives IT Their Time Back

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

728 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

8 Experts available now in Live!

Get 1:1 Help Now