How to open a file in full screen mode?

Discuss the spreadsheet application
Post Reply
Rod.V.F.
Posts: 1
Joined: Fri Aug 26, 2011 4:43 pm

How to open a file in full screen mode?

Post by Rod.V.F. »

Hello guys!! I'm new in forum so please forgive if I commit mistakes.

I got a file that I want to be in full screen mode when I open it. I'm prety sure
that there must have a macro that does it but I'm a total newby in macros. Even bought a book to understand it but it's going to be
a long, long ride till I learn.
Is there another way to archive it other than by macro?
If the only by macro. Which one, and how to use it?

Of course someone out there must know the answer. So please, help me!!

Thanks
OpenOffice 3.3 on Windows Vista
User avatar
Zizi64
Volunteer
Posts: 11510
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: How to open a file in full screen mode?

Post by Zizi64 »

Tibor Kovacs, Hungary; LO7.5.8/25.8.5.2 /Win7-10-11 x64Prof.
PortableApps: LO3.3.0-25.8.5.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Charlie Young
Volunteer
Posts: 1559
Joined: Fri May 14, 2010 1:07 am

Re: How to open a file in full screen mode?

Post by Charlie Young »

The macro Tibor links to works from a control on the sheet. It also hides or shows the row and column headers.

I think a stripped-down version is what is sought here. Assigned to Document Open using Tools > Customize > Events

Code: Select all

sub startFullScreen()

	dim document   as object
	dim dispatcher as object
			
	document   = ThisComponent.CurrentController.Frame
	dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

	dim args(0) as new com.sun.star.beans.PropertyValue
	args(0).Name = "FullScreen"
	args(0).Value = True

	dispatcher.executeDispatch(document, ".uno:FullScreen", "", 0, args())

end sub

Apache OpenOffice 4.1.1
Windows XP
User avatar
RoryOF
Moderator
Posts: 35256
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: How to open a file in full screen mode?

Post by RoryOF »

As far as I remember, OOo will save the last window state. So open a file in Calc, select it to full screen, then close calc. All Files should now open full screen.
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
Post Reply