Solved

Printing Multiple Pages

Posted on 1998-07-20
1
177 Views
Last Modified: 2010-05-03
I have multiple pages of straight text data in the form of a simple report.  I want to print each page separately. However, when I send the report to the printer, the text just runs down the first page over and over, making a big mess on the page. How do I tell the printer to make a "page break" in the text it is printing?
0
Comment
Question by:gwaltersii
1 Comment
 
LVL 1

Accepted Solution

by:
khaledc earned 100 total points
ID: 1466291
Use Printer.NewPage method, this will make sure that the printer will jump to a new page once this line is executed, for example:
Printer.Print "Something"
Printer.NewPage
Printer.Print "Something Else"
Printer.EndDoc
The above will print "Something" on one page, and then "Something Else" on Next page
Also, make sure you use the EndDoc property to finish your printing job (as shown above)
Hope that answered your question
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

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