Bug 79728 - Re calculate all cell after opening file
Summary: Re calculate all cell after opening file
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.1.5.3 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-06 15:26 UTC by Pasian
Modified: 2018-08-03 16:56 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
sample (23.69 KB, application/vnd.oasis.opendocument.spreadsheet)
2014-06-10 13:02 UTC, Pasian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pasian 2014-06-06 15:26:26 UTC
I use a calc like basic file to generate a final file with some data from other document.
To generate this final file, I use a program who insert into basic calc some informations into content.xml.
When I open this file, all cells with wrap format aren't resize automaticly.
Cells are not recalculate when opening,  said me someone on french forum.

For information, this work on OpenOffice.  

Can you add this function in next or futur release please.
thinks for all.
Comment 1 m_a_riosv 2014-06-07 12:22:26 UTC
Hi Pasian, thanks for reporting.

There is an option to recalculate when opening:
Menu/Tools/Options/LibreOffice Calc/Formula/Recalculation on file load.

Please report if this is what you are looking for?
Comment 2 Pasian 2014-06-10 07:57:41 UTC
Hi,

 Sorry but this doesn’t fixe my issue.

 Regards.


De : bugzilla-daemon@freedesktop.org [mailto:bugzilla-daemon@freedesktop.org]
Envoyé : samedi 7 juin 2014 14:22
À : Yoann PASIAN
Objet : [Bug 79728] Re calculate all cell after opening file

m.a.riosv<mailto:mariosv@miguelangel.mobi> changed bug 79728<https://bugs.freedesktop.org/show_bug.cgi?id=79728>
What

Removed

Added

Status

UNCONFIRMED

NEEDINFO

CC



mariosv@miguelangel.mobi<mailto:mariosv@miguelangel.mobi>

Ever confirmed



1

Comment # 1<https://bugs.freedesktop.org/show_bug.cgi?id=79728#c1> on bug 79728<https://bugs.freedesktop.org/show_bug.cgi?id=79728> from m.a.riosv<mailto:mariosv@miguelangel.mobi>

Hi Pasian, thanks for reporting.



There is an option to recalculate when opening:

Menu/Tools/Options/LibreOffice Calc/Formula/Recalculation on file load.



Please report if this is what you are looking for?

________________________________
You are receiving this mail because:

 *   You reported the bug.
Comment 3 Pasian 2014-06-10 09:21:52 UTC
(In reply to comment #2)
> Hi,
> 
>  Sorry but this doesn’t fixe my issue.
> 
>  Regards.
>
Comment 4 m_a_riosv 2014-06-10 11:37:05 UTC
Please can you attach a sample file?
Comment 5 Pasian 2014-06-10 13:02:45 UTC
Created attachment 100816 [details]
sample
Comment 6 Pasian 2014-06-10 13:08:28 UTC
Into attached file, there is a Macro issue, so don't take care about it.
When you open the file you could see E4, J5, J8, K8.. cells are not open, but auto wrap is selected into Format > cells > alignment.

The only way I found is select all file and double click between 2 line.
Thank before.

(In reply to comment #4)
> Please can you attach a sample file?
Comment 7 m_a_riosv 2014-06-10 22:07:24 UTC
I don't know any direct way to get it and if it is really a bug.

I think what you can do is a macro with your solution and add it to the macro in the file that runs when the file is opened.

The next, created using record macro seems to work.

sub RowHeigh

rem ----------------------------------------------------------------------
rem define variables
dim document   as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

rem ----------------------------------------------------------------------
dim args101(0) as new com.sun.star.beans.PropertyValue
args101(0).Name = "ToPoint"
args101(0).Value = "$Etat.$A$1:$IV$100000"
dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args101())

dim args102(0) as new com.sun.star.beans.PropertyValue
args102(0).Name = "aExtraHeight"
args102(0).Value = 0

dispatcher.executeDispatch(document, ".uno:SetOptimalRowHeight", "", 0, args102())

dim args103(0) as new com.sun.star.beans.PropertyValue
args103(0).Name = "ToPoint"
args103(0).Value = "$Etat.$A$1"
dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args103())

end sub
Comment 8 Pasian 2014-06-11 07:10:45 UTC
Thanks to reply.

I already use a macro to do this. But I just need to do a F9 to recalculate and all is alright.

What is odd is the fact it's work well on OpenOffice.

So, Now I looking for something like ThisComponent.calculateAll(). Because Into my real file there is a lot of line and 6 sheets who I need to recalculate.
But the problem is it's take too long time to recalculate all sheet.

To me is my last question for you.
I'm sorry for my English and I thank you to your reactivity.
Comment 9 Buovjaga 2014-11-25 08:22:35 UTC
(In reply to Pasian from comment #5)
> Created attachment 100816 [details]
> sample

I confirm the loss of wrapping in E4, J5, J8, K8.. when opening. As the reporter says this does not happen with AOO, setting as NEW.

Win 7 64-bit Version: 4.5.0.0.alpha0+
Build ID: 772befa08f02b08da1ab493896a0744bc73781c7
TinderBox: Win-x86@51-TDF, Branch:MASTER, Time: 2014-11-23_22:39:02
Comment 10 QA Administrators 2015-12-20 16:09:08 UTC Comment hidden (obsolete)
Comment 11 QA Administrators 2017-01-03 19:47:03 UTC Comment hidden (obsolete)
Comment 12 Timur 2018-08-03 16:56:51 UTC
This is a confusing bug without clear and verified Expected and Experienced. 
Reported asked for function and that's BASIC component and then test went to wrap, which was an explanation. But it's likely not wrap but height. Moreover, file gives macro error. 
Anyway, I'll close. If you object, please explain. Keep in mind that it's unlikely that some dev will read all this.