Link to home
Create AccountLog in
Avatar of jiyad
jiyad

asked on

how to make a form A4 size


how can  I make  a vb form A4 using inches and  print some textboxes in it.

can I get an idea how to do this .
 
thanx
Avatar of Arthur_Wood
Arthur_Wood
Flag of United States of America image

what are the dimensions of an A4 page (in inches)?

You should be able to set the Form Height and Width, in design mode.

AW
Avatar of jiyad
jiyad

ASKER

I have set the forms Scalemode property to inches and i use this code in the load event

Private Sub Form_Load()

Form1.ScaleMode = 5

Form1.Height = 8.5
Form1.Width = 11
End Sub

I dont get the result I need , I dont know what  the poblem is !!

thanx
Avatar of jiyad

ASKER

the form shows as it was minimised somewhat.
ASKER CERTIFIED SOLUTION
Avatar of elmer88techteam
elmer88techteam

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
I don't thisnk the 8.5 by 11 is A4.  8.5 by 11 is the standard US page size.

A4 is 210 mm by 287 mm

and that translates to 8.2677 inches by 11.2992

try those dimension and that should get you close.

AW
A4 paper size is 210mm x 297 mm - 8.267 x 11.692 inches
US letter size is  8.5 x 11 inches

Remember when setting your form size that your printer can never print over the whole page. There is always an unprintable area on left/right and top/bottom. This varies from printer to printer but you should be safe if you assume a 5 mm (0.2 inch) margin. so your form size in inches should be  8 x 11.5 which should do the trick and be pritable without the "outside the printable area" error