Reset Table Style for all tables
-
- Propeller Head
- Posts: 78
- Joined: Thu Jul 17, 2014 8:08 am
Reset Table Style for all tables
Is there a tool that I can run to reset the table style on all tables in my project and then apply my table style to all tables?
-
- Senior Propellus Maximus
- Posts: 3669
- Joined: Thu Feb 02, 2006 9:57 am
- Location: Pittsford, NY
Re: Reset Table Style for all tables
I'm not aware of one. My hunch is that there will be some many uniquenesses to the tables (varying number of columns, of rows) that the only option might be, on a table-by-table basis, to use Flare's Reset Table Style command and then apply the desired table style. Tedious work, I know.
Of course, I could be wrong and code-savvier cohorts may offer something more robust.
In any case, if you do find such as a tool to reset the table styles in one operation, be sure to back up the entire project first. MUCH could go awry.
Of course, I could be wrong and code-savvier cohorts may offer something more robust.
In any case, if you do find such as a tool to reset the table styles in one operation, be sure to back up the entire project first. MUCH could go awry.
Nita
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
-
- Senior Propellus Maximus
- Posts: 2089
- Joined: Tue Mar 07, 2006 5:06 pm
- Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).
- Contact:
Re: Reset Table Style for all tables
Is it possible to create a new table stylesheet and use a text editor to overwrite (copy and paste) your existing style sheet? That would return your table styles to the default properties.
Of course, back-up before you take an extreme step...
Of course, back-up before you take an extreme step...
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
Re: Reset Table Style for all tables
You could do a search and replace in source. Go to Home > Find and Replace in Files and select "Find in source code". Then for each style you want to replace do the following two searches:
Search for Resources/TableStyles/OldTableStyle.css
Replace with Resources/TableStyles/MyTableStyle.css (where MyTableStyle is the style you want)
Search for class="TableStyle-OldTableStyle"
Replace with class="TableStyle-MyTableStyle"
I would try this out on a single file first, then open it in the XML editor and see if it is okay. Then you can search and replace across the whole project.
If you have a lot of old table styles and are brave about regular expressions, you can use a text editor such as Notepad++ to search and replace all table types at once.
Search for Resources/TableStyles/OldTableStyle.css
Replace with Resources/TableStyles/MyTableStyle.css (where MyTableStyle is the style you want)
Search for class="TableStyle-OldTableStyle"
Replace with class="TableStyle-MyTableStyle"
I would try this out on a single file first, then open it in the XML editor and see if it is okay. Then you can search and replace across the whole project.
If you have a lot of old table styles and are brave about regular expressions, you can use a text editor such as Notepad++ to search and replace all table types at once.
-
- Propeller Head
- Posts: 78
- Joined: Thu Jul 17, 2014 8:08 am
Re: Reset Table Style for all tables
The Find and Repace OldtableStyle.css with NewTableStyles.css seems to work, so far it doesn't look like it broke anything. Thanks!
Re: Reset Table Style for all tables
It's built in and pretty easy. Steps: http://www.uaeurope.com/articles/TablesMadCapFlare.html