Solved

Set Printform size to A4

Posted on 2004-09-07
5
1,017 Views
Last Modified: 2013-12-25
Hi all,

This is my case:
I would like to print a vb form in A4 size. And I tried to do in these way:

1, Set the form size to A4 size, but failed. Cos it limited the size to my monitor's size (like 1024*768).
  e.g. form.Height = 15000
        form.Width = 12000

2, Set the Printer.Zoom, but not all the printer driver support "Zoom" function
  e.g. Printer.Zoom = 145

Is there any method to print the vb form fit to page (A4)?
Printform seems doesn't provide this function

please help!!

Ashley


0
Comment
Question by:ashleyyeung
5 Comments
 
LVL 23

Expert Comment

by:Ioannis Paraskevopoulos
ID: 11995574
Use the printer object .There is a property called PaperSize and you can set it to

Printer1.PaperSize=vbPRPSA4

or

Printer1.PaperSize=vbPRPSA4Small
0
 

Author Comment

by:ashleyyeung
ID: 12012513
Thanks jyparask,

I tried this property before, but the scale of myForm doesn't fit to A4. This property only can help to set the printer's setting.
What I want is the form I created can fit to A4 during print.

Finally, I gave up using form for printing. and replaced by data report. another question comes out.
I can't set 2 pages (with different format) in the same data report.

I have 2 different pages, data come from same datasource. the printing order should be
P.1 - P.2 - P.1 - P.2 - ..................P.2
can I add something like page break in data report?

Thanks
Ashley
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12988996
PAQed with points refunded (125)

modulo
Community Support Moderator
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

813 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

17 Experts available now in Live!

Get 1:1 Help Now