Results 1 to 1 of 1
- 06-16-2010, 07:29 AM #1Member
- Join Date
- Jun 2010
- Rep Power
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.
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?
- By Dumisan in forum JDBCReplies: 6Last Post: 02-21-2010, 01:54 AM
- By perphekto in forum Jobs OfferedReplies: 1Last Post: 03-05-2009, 08:31 PM
- By ScottSearch in forum Jobs OfferedReplies: 0Last Post: 09-22-2008, 10:06 PM
- By bugger in forum New To JavaReplies: 2Last Post: 11-16-2007, 02:24 PM