×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Hi,

Does anybody know how to set the left, right and top margins of an
Excel Spreadsheet using the HSSF that Scott wrote?
I am in a bit of a pickel and any help would be greatly appreciated, I
have already managed to set the orientation to Landscape,defined the
paper size and scaling and managed to print the gridlines...the code
included if anyone is interested
I have tried using the following code...
D LEFTMARGIN...

D C 0



D HSSFSheet_setMargin...

D PR EXTPROC(*JAVA

D :'org.apache.poi.hssf.usermodel-

D .HSSFSheet'

D :'setmargin')

D marginsize 5I 0 value

D HSSFSheet_setgridsprinted...

D PR EXTPROC(*JAVA

D :'org.apache.poi.hssf.usermodel-

D .HSSFSheet'

D :'setPrintGridlines')

D grids 1N value


sheet = HSSF_newSheet(book: strname)
HSSFsheet_setgridsprinted(sheet: *on)
HSSFsheet_setmargin(sheet: leftmargin) [which ends in error -
'NoSuchMethod']

Anyone?



Prevesh Kuni
Developer
Smollan Group
(011) 640 8154
kunip@xxxxxxxxxxxxxx


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.