Solved

Print to a file

Posted on 1998-07-31
2
127 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
ID: 1467408
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
ID: 1467409
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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