OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

How do I get OpenOffice Calc not to print zero values

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
chrisinmb
Newbie
Newbie


Joined: 10 May 2007
Posts: 1

PostPosted: Thu May 10, 2007 10:55 am    Post subject: How do I get OpenOffice Calc not to print zero values Reply with quote

How do I get OpenOffice Calc not to print zero values when printed ... I can set calc not to display zero values, but when I print all the zero values print ..... Looks very unpro.
Back to top
View user's profile Send private message
squenson
Super User
Super User


Joined: 09 Mar 2007
Posts: 690
Location: Nis, Serbia

PostPosted: Thu May 10, 2007 12:25 pm    Post subject: Reply with quote

chrisinmb,

I never realized that the option "Zero value" is only working for display, not for printing. The only solution I can offer is to use conditional formatting, with a new style that uses white font. In case you do not know how to use conditional formatting:
1) Press F11 to call the Style and Formatting box
2) Click on the icon with a "+" to create a new style, call it WhiteFont for example
3) Right-click on the new style name, select modify
4) In the tab "Font Effects", select the Font color white
5) Select all the cells where you want zero's to be "hidden"
6) Click on the menu Format > Conditional Formatting
7) Type 0 in the first textbox, and select the style WhiteFont

Adapt this solution to have the same font color to the background of your cell if you are not using white background. Dirty trick, sorry about that.
_________________
Help us to help you: Add [Solved] to the title of the thread if you agree with the answer
>>> Do you know the new OOo support forum http://user.services.openoffice.org/en/forum/index.php? <<<
Back to top
View user's profile Send private message
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10106
Location: Germany

PostPosted: Thu May 10, 2007 1:03 pm    Post subject: Reply with quote

Alternatively without conditional formatting:
Append ;"" to your existing number format.
For instance: #,##0.00;[RED]-#,##0.00;""
Or this one:General;General;""
shows the default format for positive and negative numbers and nothing for zeros.
_________________
Rest in peace, oooforum.org
Get help on https://forum.openoffice.org
Back to top
View user's profile Send private message
radar
Newbie
Newbie


Joined: 20 Apr 2007
Posts: 4
Location: Syracuse

PostPosted: Thu May 10, 2007 2:24 pm    Post subject: Reply with quote

Go to print preview, open your "Page Preview" toolbar, choose "format page" and on the sheet tab under "print", uncheck zero values

Just noticed you can get there via "Format", "Page" also.

hope this helps

Jake
_________________
OOo 2.4 running on Win 2000 Pro
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Don't pet the sweaty things...
Back to top
View user's profile Send private message Visit poster's website
Rod Carroll
General User
General User


Joined: 23 Apr 2009
Posts: 10
Location: Columbus, OH

PostPosted: Thu Apr 30, 2009 11:29 am    Post subject: Reply with quote

In Calc Version 3.01, I can use the page format dialog box to uncheck Print "Zero Values", but when I close and reopen the file, the box is checked again???

My workaround is to use an if statement to get rid of the zero value if the formula does not apply.

=IF(D5>0;D5*E5;"")

Regards,
Rod
_________________
Rod
Back to top
View user's profile Send private message
Rod Carroll
General User
General User


Joined: 23 Apr 2009
Posts: 10
Location: Columbus, OH

PostPosted: Sat Jun 06, 2009 7:29 am    Post subject: Reply with quote

My work around does not seem any more convenient than the ones listed above.

I believe that the problem is caused by saving in .xls format. When I do that it loses the unchecked setting for Page Format Print "Zero values".

Is there a macro that could uncheck that setting whenever I open a spreadsheet. I never want to print zero values.

Regards,
Rod
_________________
Rod
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group