Avatar of LeDaouk
LeDaoukFlag for Lebanon

asked on 

Change Printer Paper Size @ runtime VB6

hi experts

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

Thanks
Visual Basic Classic

Avatar of undefined
Last Comment
Lunchy
Avatar of Rimvis
Rimvis
Flag of Lithuania image

Use PaperSize property, like this:

Printer.PaperSize = vbPRPSA3 'Sets paper size to A3

Search MSDN for more constants
Avatar of LeDaouk
LeDaouk
Flag of Lebanon image

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Lunchy
Lunchy
Flag of Canada image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Visual Basic Classic
Visual Basic Classic

Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.

165K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo