Link to home
Create AccountLog in
.NET Programming

.NET Programming

--

Questions

--

Followers

Top Experts

Avatar of Ahmadal_najjar2003
Ahmadal_najjar2003🇰🇼

PrintForm within vb2008
I want to use PirntForm within VB2008 , Can I change the paper size and the margins.

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of Éric MoreauÉric Moreau🇨🇦


Avatar of Ahmadal_najjar2003Ahmadal_najjar2003🇰🇼

ASKER

First , Thank you for these very good information.

But the problem which come with me, that when I click print form so, the form didn't fit into the A4 size which is the default in the printer settings.

Avatar of Éric MoreauÉric Moreau🇨🇦

have a look at http://www.emoreau.com/Entries/Articles/2008/03/Microsoft-Visual-Basic-Power-Packs-30.aspx

have you tried something like:
.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.FullWindow)

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of Ahmadal_najjar2003Ahmadal_najjar2003🇰🇼

ASKER

I tried but not success.

Attached the snapshot of the result
PrintForm.png

Avatar of Éric MoreauÉric Moreau🇨🇦

what do you want the result to be exactly?

Avatar of Ahmadal_najjar2003Ahmadal_najjar2003🇰🇼

ASKER

I want it to fit all the page like this.



PrintForm2.png

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


ASKER CERTIFIED SOLUTION
Avatar of Éric MoreauÉric Moreau🇨🇦

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of Ahmadal_najjar2003Ahmadal_najjar2003🇰🇼

ASKER

Thats the problem

SOLUTION
Avatar of RyanRyan🇺🇸

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.

Avatar of Ahmadal_najjar2003Ahmadal_najjar2003🇰🇼

ASKER

Thanks
.NET Programming

.NET Programming

--

Questions

--

Followers

Top Experts

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.