You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2013/08/07 13:03:14 UTC
[Bug 55378] New: Need to setup Print option "Fit All Columns on One
Page" in poi java code
https://issues.apache.org/bugzilla/show_bug.cgi?id=55378
Bug ID: 55378
Summary: Need to setup Print option "Fit All Columns on One
Page" in poi java code
Product: POI
Version: 3.7
Hardware: PC
Status: NEW
Severity: major
Priority: P2
Component: HSSF
Assignee: dev@poi.apache.org
Reporter: rajeshkonduru@gmail.com
Hi all,
I know that following poi code will setup the print option "Fit Sheet on One
Page" by default
Workbook wb = new HSSFWorkbook();
Sheet sheet = wb.createSheet("format sheet");
PrintSetup ps = sheet.getPrintSetup();
sheet.setAutobreaks(true);
ps.setFitHeight((short)1);
ps.setFitWidth((short)1);
But my requirement is to setup Print Option "Fit All Columns on One Page" by
default. i.e. when the excel is generated and user presses Ctrl+P it should
show the Print dialog box with "Fit All Columns on One Page" option by default.
I tried with
ps.setFitHeight((short)2);
ps.setFitWidth((short)2);
but it doesn't work.
Can somebody please help asap, need help urgently.
Thanks,
Rajesh
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 55378] Need to setup Print option "Fit All Columns on One Page"
in poi java code
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55378
Rajesh <ra...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 55378] Need to setup Print option "Fit All Columns on One Page"
in poi java code
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55378
Nick Burch <ap...@gagravarr.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
Bugzilla is a place to report issues with the project and contribute fixes, not
to ask for support. For help, you need to post to the user mailing list -
http://poi.apache.org/mailinglists.html
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org