473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Print a page in 70% of it's size

Hi,

I've a document which i'm creating and printing.
i want to print 2 copies:

1. regular A4 copy
2. 70% of A4 size (like in copy machine, where you can choose the size of
copy).

how can i do that?
thanks,
Gidi.
Jun 27 '08 #1
4 3065
Hi Gidi,

I haven't tested it, but in your printing code I believe you should be able
to adjust the Graphics object to scale down to 70% the normal size, which
would cause the printed output to be reduced to 70% as well.

--
Happy Coding!
Morten Wennevik [C# MVP]
"Gidi" wrote:
Hi,

I've a document which i'm creating and printing.
i want to print 2 copies:

1. regular A4 copy
2. 70% of A4 size (like in copy machine, where you can choose the size of
copy).

how can i do that?
thanks,
Gidi.
Jun 27 '08 #2
Thanks,

but can you give me an example or something to look for in the interent?

Thanks,
Gidi.

"Morten Wennevik [C# MVP]" wrote:
Hi Gidi,

I haven't tested it, but in your printing code I believe you should be able
to adjust the Graphics object to scale down to 70% the normal size, which
would cause the printed output to be reduced to 70% as well.

--
Happy Coding!
Morten Wennevik [C# MVP]
"Gidi" wrote:
Hi,

I've a document which i'm creating and printing.
i want to print 2 copies:

1. regular A4 copy
2. 70% of A4 size (like in copy machine, where you can choose the size of
copy).

how can i do that?
thanks,
Gidi.
Jun 27 '08 #3
Hi Again,

i found the PageScale property, and as i understand it changes my page size
(in my case it's 70% smaller).

the problem is that if i use it, it doesn't effect the font size or the
image size that i'm drawing(printing).

is that mean that i have to have 2 different class, one for printing my
document in A4 Size and the second to print it 70% smaller?

thanks,
Gidi.

"Morten Wennevik [C# MVP]" wrote:
Hi Gidi,

I haven't tested it, but in your printing code I believe you should be able
to adjust the Graphics object to scale down to 70% the normal size, which
would cause the printed output to be reduced to 70% as well.

--
Happy Coding!
Morten Wennevik [C# MVP]
"Gidi" wrote:
Hi,

I've a document which i'm creating and printing.
i want to print 2 copies:

1. regular A4 copy
2. 70% of A4 size (like in copy machine, where you can choose the size of
copy).

how can i do that?
thanks,
Gidi.
Jun 27 '08 #4
On Fri, 09 May 2008 05:52:01 -0700, Gidi <sh*****@hotmail.com.dontspam>
wrote:
i found the PageScale property, and as i understand it changes my page
size
(in my case it's 70% smaller).
If you're talking about the Graphics.PageScale property, it doesn't
exactly change your page size. It changes the scaling between "world
coordinates" and "page units". This is probably not exactly what you want
because...
the problem is that if i use it, it doesn't effect the font size or the
image size that i'm drawing(printing).
Right, because those things carry with them their own units that are
applied independently. I think that there may be some way to adjust how
those are drawn. However, there's a simpler way. Use the
Graphics.ScaleTransform() method instead. This works similarly to how the
PageScale property does, but should apply equally to _all_ graphics
rendered.
is that mean that i have to have 2 different class, one for printing my
document in A4 Size and the second to print it 70% smaller?
Whether you need two different classes depends on how you've designed your
code. It's entirely possible to design a single class such that it allows
you to specify scaling that's applied when it draws its graphics. Whether
you follow that approach or use two different classes is up to you.

Pete
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Rich Sweeny | last post by:
Hi, I am working in Mac OSX 10.3.7 with SDK 1.4_2. When my Print Dialog box comes up just about everything is disabled except selecting from the 4 printers I have and being able to set the page...
3
by: hycn office | last post by:
how to print with pre-define preference such as margin and page size ? and a quick Question , the function call to save as thanks ~~~~~~~
1
by: weiwei | last post by:
HI I am having a problem with print friendly function with asp, I have download some code regard with print friendly, it works fine with static html information, however, I have the dynamic pages...
48
by: David J Patrick | last post by:
I'm trying to rewrite the CSS used in http://s92415866.onlinehome.us/files/ScreenplayCSSv2.html. using the w3.org paged media standards as described at http://www.w3.org/TR/REC-CSS2/page.html ...
3
by: Sonya | last post by:
Dear list; I am a css newbie, and hope you can help. I am trying to make my page print out horizontal when user hits a print button in my page. the print button invokes javascript print.window()...
16
by: Neal | last post by:
Hi, I saw the VB6 Code to do this at this link: http://www.dotnet247.com/247reference/msgs/11/56581.aspx The VB6 Code reads as follows: Private Type Rect Left As Long
6
by: CSharpguy | last post by:
In my gridview I have 2 -3 template fields which are hyperlinks. I allow the user to print this grid. When the grid prints it also prints the links, how can I take the user to a print preview page...
2
by: Brad Pears | last post by:
I have a vb.net 2005 application and am using the print preview screen. This screen has a printer icon on it that the user can use to print the document currently being viewed. It uses the default...
2
by: dmorand | last post by:
When I try to print a 'print version' of my page it looks fine in IE 7, but when I print in IE 6 the margins are all screwed up. The page itself looks the same in both browsers, it's just when I...
3
by: rajkumarpb | last post by:
Hi friends, I am new to this forum...But not for programming...I want a Print CSS File to be added in my page..OK.... Here is the page and i want you friends to help me create the CSS File...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.