Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Beginning Java 2
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning Java 2
This is the forum to discuss the Wrox book Beginning Java 2, SDK 1.4 Edition by Ivor Horton; ISBN: 9780764543654
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Java 2 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 24th, 2004, 04:06 AM
Registered User
 
Join Date: Nov 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Topic On Printing Documents

I don't understand the content of page 966 of the book.
Hope someone would be kind to explain to me.

According to the book, origin has to be moved to -rect.x, -rect.y.
What confuses me is since the rectangle is located left and up to the paper, shouldn't rect.x and rect.y be negative?
If so, by minusing rect.x and rect.y, wouldn't the origin be moved right and downwards instead?
Thanks!

 
Old November 27th, 2004, 10:05 AM
Authorized User
 
Join Date: Sep 2003
Location: den Haag, , Netherlands.
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by hopesnfears
 I don't understand the content of page 966 of the book.
Hope someone would be kind to explain to me.

According to the book, origin has to be moved to -rect.x, -rect.y.
What confuses me is since the rectangle is located left and up to the paper, shouldn't rect.x and rect.y be negative?
If so, by minusing rect.x and rect.y, wouldn't the origin be moved right and downwards instead?
Thanks!
Oh, that sort of thing is really terrible, I agree, mistakes are so easy to make. Try it out for yourself, see how it works, if it doesn't change the minus signs, don't try to wrap your head around this, you'll get crazy!

Frans





Similar Threads
Thread Thread Starter Forum Replies Last Post
topic aparameshwar SQL Server 2000 6 July 11th, 2007 11:23 AM
Printing Documents from a Form seananderson Access VBA 0 February 8th, 2007 05:04 AM
Printing Documents & Keeping track of status Scripts82 VB.NET 2002/2003 Basics 1 July 10th, 2006 03:51 PM
Is this topic a professional topic?? mega ASP.NET 1.0 and 1.1 Professional 0 December 3rd, 2004 09:37 PM
Printing formatted documents from c# web forms Grahame2003 C# 0 February 6th, 2004 10:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.