Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Beginning Java 2
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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!

  #2 (permalink)  
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

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:52 AM.


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