|
> From: Glenn Holmer > Sent: Monday, December 03, 2001 3:15 PM > To: java400-l@midrange.com > Subject: SCS writer > > I'm not using a print file, but I set the parameters like this: > > parms.setParameter(PrintObject.ATTR_MEASMETHOD, "*ROWCOL"); > parms.setParameter(PrintObject.ATTR_PAGELEN, (float)18.0); > parms.setParameter(PrintObject.ATTR_OVERFLOW, 18); Just a note to save a little typing... I think you can specify your float value as "18F". The default for floating point is double precision, so "18.0" won't work, but "18F" should work just fine. And technically, you should be able to just pass "18"; the compiler will convert the implied int value to float, but "18F" documents it a little better. Joe
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.