Importing a WORD table into a topic
Importing a WORD table into a topic
I want to import big tables created in MS Word into one or several topics in MadCap Flare V3.1. If I import it into the text part the formatting gets lost and I get one long string instead of the table. If I import the table into a predefined table consisting of one cell only, I have the same result. If the table is imported in a table having the required number of columns and rows the result is not better.
Is there a way to avoid creating all these tables from the scratch in Madcap Flare? I found only one answer in the forum stating that a Word table was imported in MadCap Flare. So I have the hope that it might work. Can anybody give me some hints how to proceed?
Jutta
Is there a way to avoid creating all these tables from the scratch in Madcap Flare? I found only one answer in the forum stating that a Word table was imported in MadCap Flare. So I have the hope that it might work. Can anybody give me some hints how to proceed?
Jutta
-
- Propellus Maximus
- Posts: 1985
- Joined: Tue Jan 23, 2007 8:18 am
- Location: Darn, I knew I was around here somewhere...
Re: Importing a WORD table into a topic
Are you using Flare's Word Import feature, or are you trying to copy / paste the table from Word into a topic? As far as I know copying / pasting doesn't work for tables, so if you haven't already I would try using the Word import feature.
You can create a new import in the Project Organizer under Imports.
You can create a new import in the Project Organizer under Imports.
Until next time....
Kevin Amery
Certified MAD for Flare
Kevin Amery
Certified MAD for Flare
Re: Importing a WORD table into a topic
If you're copying-and-pasting and you're using Flare v4, there is an option to paste content as a table. I haven't used it since I'm not copying content into this project, so I'm not sure how well it works, but you could try that.
Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Re: Importing a WORD table into a topic
Thank you very much for your answer, Kevin. As you proposed I managed to import the Word file with tables using this Word Import feature, and it worked.KevinDAmery wrote:Are you using Flare's Word Import feature, or are you trying to copy / paste the table from Word into a topic? As far as I know copying / pasting doesn't work for tables, so if you haven't already I would try using the Word import feature.
You can create a new import in the Project Organizer under Imports.
Thanks a lot,
Jutta
Re: Importing a WORD table into a topic
Thank you for your proposal. In the meantime I managed to import the Word tables using the Word Import feature proposed by Kevin because I'm using Flare V3.1.LTinker68 wrote:If you're copying-and-pasting and you're using Flare v4, there is an option to paste content as a table. I haven't used it since I'm not copying content into this project, so I'm not sure how well it works, but you could try that.
But it is interesting to learn that such an option is now available in Flare V4.
Thanks a lot for your help.
Jutta
Re: Importing a WORD table into a topic
FYI, it works pretty well. However, Flare doesn't recognize rows set as header rows in Word. Once I copy and paste a table in, I'll go to the table properties and select the table style (making sure to specify that there is a table header row). It will apply the settings to the table but leave a blank header row at the top of the table. Then I'll cut and paste the contents from the cells in the first body row (what was the header row in Word) into the cells in the table header, then delete the empty body row. Also, complex tables with lots of merged cells may not always retain those merges correctly, in which case I'd have to re-apply them once I pasted the table. In some cases, what I got in Flare was really messed up. Sometimes just deleting the pasted table and starting over helped.LTinker68 wrote:If you're copying-and-pasting and you're using Flare v4, there is an option to paste content as a table. I haven't used it since I'm not copying content into this project, so I'm not sure how well it works, but you could try that.
JRP
"How many slime-trailing, sleepless, slimy, slobbering things do you know that will run and hide from your Eveready?"
--Maureen Birnbaum, Barbarian Swordsperson
"How many slime-trailing, sleepless, slimy, slobbering things do you know that will run and hide from your Eveready?"
--Maureen Birnbaum, Barbarian Swordsperson
Re: Importing a WORD table into a topic
Another option, is once you've pasted the table into a Flare topic, use the internal text editor to add the <thead></thead> and <tbody></tbody> tags. I also change the <td> tags in the header row to <th>. Once I have those things changed, then when I go to the table properties, and select the style I want, it will recognize the rows inside the <thead></thead> as header rows and will apply the correct style to them.navoff wrote:FYI, it works pretty well. However, Flare doesn't recognize rows set as header rows in Word. Once I copy and paste a table in, I'll go to the table properties and select the table style (making sure to specify that there is a table header row). It will apply the settings to the table but leave a blank header row at the top of the table. Then I'll cut and paste the contents from the cells in the first body row (what was the header row in Word) into the cells in the table header, then delete the empty body row. Also, complex tables with lots of merged cells may not always retain those merges correctly, in which case I'd have to re-apply them once I pasted the table. In some cases, what I got in Flare was really messed up. Sometimes just deleting the pasted table and starting over helped.LTinker68 wrote:If you're copying-and-pasting and you're using Flare v4, there is an option to paste content as a table. I haven't used it since I'm not copying content into this project, so I'm not sure how well it works, but you could try that.
I've submitted a request to have Flare retain the heading information from a Word table. Word must be doing something that flags the header lines in order to make them repeat at the top of each page so it should provide Flare with the necessary information to set the header row(s) apart from the body of the table.
JRP
"How many slime-trailing, sleepless, slimy, slobbering things do you know that will run and hide from your Eveready?"
--Maureen Birnbaum, Barbarian Swordsperson
"How many slime-trailing, sleepless, slimy, slobbering things do you know that will run and hide from your Eveready?"
--Maureen Birnbaum, Barbarian Swordsperson
Re: Importing a WORD table into a topic
To get the header row(s) to repeat from page to page in print output, add the following code to the print medium section of the stylesheet:navoff wrote:I've submitted a request to have Flare retain the heading information from a Word table. Word must be doing something that flags the header lines in order to make them repeat at the top of each page so it should provide Flare with the necessary information to set the header row(s) apart from the body of the table.
Code: Select all
thead
{
display: table-header-group;
}
Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Re: Importing a WORD table into a topic
Actually, I don't have a problem in Flare getting table header rows to repeat from page to page. It does that by default. The problem is when bringing in a table from Word (either copy and paste or Word import) with Flare not recognizing that there is a header row. It flags the entire table as part of the body, or rather, it doesn't add the <thead></thead> and <tbody></tbody> tags around the header and body rows. So, when you try to apply the table style to it, the row that should be the header, becomes the first body row. Then you have to manually cut and paste the information from the table cells into the header row. Either that, or you need to modify the table before you try to apply a table style to it.LTinker68 wrote:To get the header row(s) to repeat from page to page in print output, add the following code to the print medium section of the stylesheet:navoff wrote:I've submitted a request to have Flare retain the heading information from a Word table. Word must be doing something that flags the header lines in order to make them repeat at the top of each page so it should provide Flare with the necessary information to set the header row(s) apart from the body of the table.
Code: Select all
thead { display: table-header-group; }
You can tell that Flare isn't picking up on the fact that there are header rows when you try to apply a style because if the <thead> and <tbody> tags are present, it will automatically figure out how many columns, body rows and header rows there are. If the <thead> and <tbody> tags are missing, then it the number of header rows is set to 0. It's the lack of <thead></thead> and <tbody></tbody> tags that messes things up. However, as I said before, there should be something about the header row in Word that distinguishes as a header row (since Word knows enough to repeat the header row on each page). The Flare developers need to figure out how to preserve that information when the table gets imported from Word into Flare. Then there wouldn't need to be any of these after import fixes.
JRP
"How many slime-trailing, sleepless, slimy, slobbering things do you know that will run and hide from your Eveready?"
--Maureen Birnbaum, Barbarian Swordsperson
"How many slime-trailing, sleepless, slimy, slobbering things do you know that will run and hide from your Eveready?"
--Maureen Birnbaum, Barbarian Swordsperson
Re: Importing a WORD table into a topic
I am encountering this same problem also. My clients want to maintain content in Word, and have a "one-click" solution for generating online Help. Flare's inability to sense a table header is causing a lot of manual editing that is unacceptable to them.
How can I submit a change request to MadCap to automatically sense a table header in Word when importing?
How can I submit a change request to MadCap to automatically sense a table header in Word when importing?
Re: Importing a WORD table into a topic
Go to their Bug/Enhancement Submission Form:kpfautz wrote:I am encountering this same problem also. My clients want to maintain content in Word, and have a "one-click" solution for generating online Help. Flare's inability to sense a table header is causing a lot of manual editing that is unacceptable to them.
How can I submit a change request to MadCap to automatically sense a table header in Word when importing?
https://www.madcapsoftware.com/bugs/submit.aspx
JRP
"How many slime-trailing, sleepless, slimy, slobbering things do you know that will run and hide from your Eveready?"
--Maureen Birnbaum, Barbarian Swordsperson
"How many slime-trailing, sleepless, slimy, slobbering things do you know that will run and hide from your Eveready?"
--Maureen Birnbaum, Barbarian Swordsperson
Re: Importing a WORD table into a topic
I found a work around for copying tables from a word document as I did not want to import a whole document in just a table
If you copy the table into a site like:
http://word2cleanhtml.com/
You can then copy the coverted HTML source and paste it into Madcap Source editor window
Works like a dream
If you copy the table into a site like:
http://word2cleanhtml.com/
You can then copy the coverted HTML source and paste it into Madcap Source editor window
Works like a dream
-
- Jr. Propeller Head
- Posts: 3
- Joined: Thu Apr 21, 2011 7:35 am
- Location: Paris, baby
Re: Importing a WORD table into a topic
thanks for the tip !
-
- Propeller Head
- Posts: 72
- Joined: Sun May 03, 2009 12:45 pm
Re: Importing a WORD table into a topic
Thanks for this timely and useful tip! This saved me considerable time.
- Willie Williams
-----------------------------------
- Willie Williams
-----------------------------------
nozibee wrote:I found a work around for copying tables from a word document as I did not want to import a whole document in just a table
If you copy the table into a site like:
http://word2cleanhtml.com/
You can then copy the coverted HTML source and paste it into Madcap Source editor window
Works like a dream