Solved

Change Printer Paper Size @ runtime VB6

Posted on 2004-03-28
4
1,498 Views
Last Modified: 2010-05-03
hi experts

how can i change the printer paper size @ run time in visual basic 6.
a sample, or code will be aapreciated.

Thanks
0
Comment
Question by:LeDaouk
[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
4 Comments
 
LVL 19

Expert Comment

by:Rimvis
ID: 10702176
Use PaperSize property, like this:

Printer.PaperSize = vbPRPSA3 'Sets paper size to A3

Search MSDN for more constants
0
 
LVL 4

Author Comment

by:LeDaouk
ID: 10705886
u can use this when u r using the printer object like printer.print "BLA BLA BLA..."
I want to resize the paper before that I run a data report
0
 
LVL 2

Accepted Solution

by:
Lunchy earned 0 total points
ID: 10846443
Closed, 50 points refunded.
Lunchy
Friendly Neighbourhood Community Support Admin
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

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 …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

726 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