?
Solved

Printing Multiple Pages

Posted on 1998-07-20
1
Medium Priority
?
181 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
khaledc earned 300 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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 …
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses

752 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