Copy and paste tables from Word to Flare

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
TeSol
Sr. Propeller Head
Posts: 114
Joined: Wed Sep 14, 2011 12:02 am

Copy and paste tables from Word to Flare

Post by TeSol »

Hi,

Can someone tell me how to copy and paste tables from Word to Flare? Regular text gets copied. But where tables are concerned only the text in the tables gets copied; not the tables themselves. It is then painful to create a table freshly and put the text in the desired columns. :(

Any help in this regard would be much appreciated.
Nita Beck
Senior Propellus Maximus
Posts: 3672
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Copy and paste tables from Word to Flare

Post by Nita Beck »

Easily done.

Copy the table and then paste in Flare. Then, immediately, look just below and to the right of the table, where you'll see a little paste icon. Click that and select "Paste Table". Then you'll have a table, ready for styling.
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
TeSol
Sr. Propeller Head
Posts: 114
Joined: Wed Sep 14, 2011 12:02 am

Re: Copy and paste tables from Word to Flare

Post by TeSol »

Oh, that's so easy...works beautifully.
Thanks so much Nita Beck.
I shudder to think how much of work would have been involved if you hadnt given me this solution.

Much appreciated.
seamanp4764
Propeller Head
Posts: 38
Joined: Thu Sep 05, 2013 11:39 am

Re: Copy and paste tables from Word to Flare

Post by seamanp4764 »

Hello Nita.....I'd like ask a follow up on this if I may.
Here is one row from a table that I manually applied styles to.
<tr>
<td class="tbl_bodytext">AdverseResultsDelayBizDays</td>
<td class="tbl_bodytext">Sets the number of business days to delay delivering adverse background report results. The default value is 5.</td>
</tr>

I set up a test table row with the same data in Word and followed your instructions.
When I viewed the code in Flare (Version 10.2), here is what I saw.
Notice the <p> and </p> applied inside of each "<td>".
<tr>
<td>
<p>AdverseResultsDelayBizDays</p>
</td>
<td>
<p>Sets the number of business days to delay delivering adverse background report results. The default value is 5.</p>
</td>
</tr>

I applied the style <td class="tbl_bodytext"> to each cell which then showed this code:
<tr>
<td>
<p class="tbl_bodytext">AdverseResultsDelayBizDays</p>
</td>
<td>
<p class="tbl_bodytext">Sets the number of business days to delay delivering adverse background report results. The default value is 5.</p>
</td>
</tr>

Needless to say, my two tables do not display the same.
I can manually remove the "<p>" coding, but that kind of defeats the purpose, eh?

I very well could be overlooking something very simple as I'm by no means a guru at this stuff :)
Any input would be greatly appreciated.

Thanks in advance.....
ChoccieMuffin
Senior Propellus Maximus
Posts: 2650
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Copy and paste tables from Word to Flare

Post by ChoccieMuffin »

When Flare imports a Word document, it always puts the content of a table cell inside <p> tags, so I suggest you define a complex selector for a <p> inside a <td> so that it matches what you usually get inside a <td>.

To do this, in your CSS file, add something like this: (I'm showing you what my td and p styles look like so you can see what the difference is. In my case it's to do with spacing, and note that my <p> is indented by 1 inch but a p inside a td has no indent.)

Code: Select all

@media print
	p
	{
		font-family: Arial;
		margin-top: 3pt;
		margin-bottom: 9pt;
		background-image: none;
		font-size: 9pt;
		color: #000000;
		orphans: 2;
		widows: 2;
		margin-left: 1in;
		mc-hyphenate: never;
		line-height: 12pt;
	}

	td
	{
		vertical-align: top;
		text-align: left;
		padding-right: 6pt;
		margin-top: 1pt;
		margin-bottom: 1pt;
		border-top: solid #ff0000;
	}

	td p
	{
		vertical-align: top;
		text-align: left;
		margin-left: 0in;
		margin-top: 1pt;
		margin-bottom: 1pt;
	}

Hope that helps.
Started as a newbie with Flare 6.1, now using Flare 2024r2.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
seamanp4764
Propeller Head
Posts: 38
Joined: Thu Sep 05, 2013 11:39 am

Re: Copy and paste tables from Word to Flare

Post by seamanp4764 »

Appreciate the quick response ChoccieMuffin....

I'm meeting with a couple of Technical Writers later this week and we'll take a look at your suggestion.

Thanks much!
Post Reply