[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

What is the size of A4 in Vb.net windows form.

Posted on 2012-08-28
5
Medium Priority
?
1,686 Views
Last Modified: 2012-09-15
I have to generate the mulitple ID Cards, on vb.net windows form. That i want to print 6 id cards on form, assuming that a4 size should be there for windows form.
I m done with borderless form, now that form size should be of A4.
Wat should be the height and width of form. as form is taking maximum height as 780 maximum.


Please reply if someone has experimented this thing.
0
Comment
Question by:searchsanjaysharma
  • 3
  • 2
5 Comments
 
LVL 39

Accepted Solution

by:
appari earned 1500 total points
ID: 38344366
what are you trying to do?
have you tried using PrintPreviewControl and PrintDocument controls?
check this PrintDocument sample for a start.
http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument(v=vs.80).aspx
0
 

Author Comment

by:searchsanjaysharma
ID: 38344382
I want to change the height and width of windows form to A4
0
 
LVL 39

Assisted Solution

by:appari
appari earned 1500 total points
ID: 38344395
instead of using and changing the form size, can you  use PrintDocument class and there you can set the paper size to A4. to show the preview use PrintPreview control.
0
 

Author Comment

by:searchsanjaysharma
ID: 38344458
Let me try
0
 

Author Closing Comment

by:searchsanjaysharma
ID: 38401417
ok
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

872 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