Ask Your Question
0

CALC - Custom page style saved in default template not showing up when existing spreadsheet opened

asked 2012-05-17 20:26:36 +0200

badgerbio gravatar image badgerbio
1 1

updated 2012-07-24 12:13:57 +0200

manj_k gravatar image manj_k
5774 4 33 50

Title pretty says it all. I have a program which generates XLS (excel) format workbooks on a linux machine. I want to format the worksheets in an automated fashion. I am trying to 1) change style to landscape 2) add header with sheet name 3) fit each sheet to 1 page

I figured the easiest way to do this was to define a custom style that did 1,2, and 3 then write a macro to apply this style to a given file.

I made the custom style then saved it in the default template. When I create a new spreadsheet, the custom style is available in the F11 Styles menu. However, if I open an existing xls file, the only styles that show up are Default and Report.

I've searched the forums and can't get anywhere.

any thoughts? Thanks!

delete close flag offensive retag edit

Comments

@badgerbio -- Did @w_whalley's Answer help you out? Are you still looking for some insight into your problem? Please let us know!

qubit ( 2013-01-25 23:11:58 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2012-05-18 15:54:05 +0200

w_whalley gravatar image w_whalley flag of United States
1591 10 24

There is a way to import styles from one document to another. See this link in the LibreOffice help pages. If you want to change an existing style to the imported one, choose the overwrite option in the Load Styles dialog.

Or, perhaps the Template Changer extension will work better for your needs.

link delete flag offensive edit

Login/Signup to Answer

Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2012-05-17 20:26:36 +0200

Seen: 258 times

Last updated: May 18 '12