Results 1 to 1 of 1
- 06-16-2010, 06:29 AM #1
Member
- Join Date
- May 2010
- Posts
- 14
- Rep Power
- 0
printable area mismatch between Java & C++ possible?
Java for some reason places the Paper 0,0 coordinate in a location different from what I get with C++ (VCL). Also without translation for both, printed results are cut off a different amount, which doesn't make sense to me as it should be handled by the printer driver. C++ gets a larger printable area. Same machine, same printer, same driver for both Java and C++.
The printer is a Dymo LabelWriter 400 on Windows XP with the latest driver if that matters.
I'd like to read some thoughts on the issue from those who have programmed printing in different languages.
How I test:
Java positions in 72th of an inch units. VCL positions in actual dpi which is 300 in this case.
Consider a default device paper size. Draw an L of two lines exactly an inch from 0,0 canvas on x and y. Point 72,72 for Java ends up in different location than 300,300 for C++ VCL. If I measure with a ruler VCL gets it right on the money, but Java is off.
Questions:
Could it be because Java has its own coordinate system in java.awt print or javax.print?
Is there any way I could use printer's own coordinate system in dpi units in Java directly?
Similar Threads
-
SQLException:java.sql.Exception:Data type mismatch in criteria expresion
By Dumisan in forum JDBCReplies: 6Last Post: 02-21-2010, 12:54 AM -
Java Developer position-San Francisco Bay Area
By perphekto in forum Jobs OfferedReplies: 1Last Post: 03-05-2009, 07:31 PM -
Developer III - JAVA; North Texas area
By ScottSearch in forum Jobs OfferedReplies: 0Last Post: 09-22-2008, 09:06 PM -
type mismatch: cannot convert from double to float
By bugger in forum New To JavaReplies: 2Last Post: 11-16-2007, 01:24 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks