Solved

Change Printer Paper Size @ runtime VB6

Posted on 2004-03-28
4
1,433 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
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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 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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now