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

Print to a file

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
posnorm
Asked:
posnorm
1 Solution
 
alamoCommented:
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
 
posnormAuthor Commented:
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

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.

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