Can I apply a table style to a table when importing?

This forum is for all Flare issues related to importing files or projects.
Post Reply
ChoccieMuffin
Senior Propellus Maximus
Posts: 2630
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Can I apply a table style to a table when importing?

Post by ChoccieMuffin »

Hi

I have several projects that are imported from Word, content is maintained in Word. Because of a need to automate the building and production from Word to Flare to PDF I don't touch the Flare projects manually, but do perform a few search and replace tasks on the html files using a script after they've been created by the import. Long story, a magical process designed by a predecessor which is rather too "black box" for my liking but would involve too much actual work on my part to allow me to work in Flare. I tried to get back to doing things in Flare but that seriously bit me on the bum so I'm having to go back to the old way, and am looking for ways to improve the output.

The source documents contain quite a few tables and I'd like to be able to apply a table style to the tables (either during import or by clever use of search and replace), but I can't figure out how to apply table styles without going into the Flare project, which as I've said isn't possible with my current process.

Any suggestions?
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
wclass
Propellus Maximus
Posts: 1238
Joined: Mon Feb 27, 2006 5:56 am
Location: Melbourne, Australia

Re: Can I apply a table style to a table when importing?

Post by wclass »

We import documents with tables form Word and apply a table style using find and replace.
Our imported tables come in as:
<table>
...
</table>

and we find/replace <table> with <table class="myTableStyle">

and it all works well. You should be able to add that to your magic script.

A few caveats - the Word table has to be "clean". Make sure it is set in Word to have a table heading row if that's what your Flare css expects. We usually make sure our text is all "Normal" style in Word (and have Word table style settings if we want the headings to be bold, etc), because then Flare will better pick up the CSS style and the <th> etc won't be overwritten.
Margaret Hassall - Melbourne
ChoccieMuffin
Senior Propellus Maximus
Posts: 2630
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Can I apply a table style to a table when importing?

Post by ChoccieMuffin »

Thanks Margaret. I meant a table stylesheet, rather than a table class from the regular stylesheet - I already do what you suggest. I can't see how to apply a table stylesheet, and that's what's stumping me. I suspect that it's just not possible, but I was hoping...
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Nita Beck
Senior Propellus Maximus
Posts: 3667
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Can I apply a table style to a table when importing?

Post by Nita Beck »

AFAIK, it's not possible to assign a table stylesheet during import.
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
Post Reply