Re: Best way to get HTML Tables to MS Word tables

2018-02-27 Thread Jim Labos - infobase via 4D_Tech
Since I am only interested in generating tables in word I have no need for
something elaborate enough to generate everything.

So yes Dan what I did is I started to look at table sin Excel and copy
pasting to Word. Finally I created a sample of the simplest table we need to
generate and then saved as HTML from the Word document. That is best
solution I could find for now.

I am fooling around manipulating the HTML and so far it seems to be doing
well. The objective is to use templates and tags then run Process 4D Tags
and build the tables that way.

I was able to accurately create tables, rows and columns no problem. I can
manipulate certain formatting parameters etc.

The only thing right now is that I assign a Table width as well as column
widths and they are not conforming to that setting. For instance I have 4
columns, first is 300 and the next 3 are 75. However the 2nd to last seems
to be 150. Too tired tonight to go on but it should not be impossible to get
this to work.

So in conclusion I think using snippets of Word's HTML is the way to go in
my case. At least it would seem so up to now.

Cheers

Jim Labos - infobase




-
Jim Labos - infobase
--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Best way to get HTML Tables to MS Word tables

2018-02-26 Thread Dan Gallagher via 4D_Tech
Jim,

I don't know of anything that can easily convert HTML to office xml besides. 
I have only generated ms word tables directly from 4D.  

My best suggestion is to create a table with word with dummy data then go
into document.xml from the .docx file and look at the xml from there.  You
can look at how office xml tables work then mark those up with Process Tags
to import the real data.

Dan



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Best way to get HTML Tables to MS Word tables

2018-02-26 Thread Michael McCall via 4D_Tech
Like Jim, I've never used PHP but would be curious to give this solution for MS 
Word a try. Any chance anyone who might have tried it could provide some simple 
instructions on how to get started? I don't know whether everything needed is 
already included in 4D - we use v16 r4 currently - or if and how we may need to 
add other modules. 

Any example of creating a simple Word document within 4D using PHPWord would be 
appreciated as well. 

We'd had hopes for 4D Write Pro until we found out it couldn't easily save as a 
Word Document like you could do with  4D Write.

Thanks in advance to any guidance anyone might be able to offer. 

Mike McCall 
Facilitate.com 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Best way to get HTML Tables to MS Word tables

2018-02-23 Thread Jim Labos - infobase via 4D_Tech
Thanks Dani, I'll check that out. I have never used or needed to use PHP so I
hope that I can find another solution. If it's the only game in town then I
guess I'll have to dive in.

I'm thinking XML, as I am more familiar with that and MS Word seems to
support it, but again I would feel better if someone has done it
successfully before.

Cheers

Jim Labos - infobase





-
Jim Labos - infobase
--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Best way to get HTML Tables to MS Word tables

2018-02-23 Thread Dani Beaubien via 4D_Tech
Hi Jim, I suggest you take a look at phpWord 
(https://phpword.readthedocs.io/en/latest/ 
). It works well, quite quick and 
you can output in a number of word formats.

Dani



> On Feb 23, 2018, at 3:04 PM, Jim Labos - infobase via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> I've been doing some HTML tables that end up in Word for a while now but
> until now there was no need to get it to render any better so if it ain't
> broke.
> 
> However now comes the need to have tables render as exact as possible in
> Word. Now I say /from/ HTML because I have been doing it that way in past
> but going direct to Word would be even better.
> 
> The good thing in HTML is it is simple to develop and maintain as well as
> debug. The problem many things don't end up looking the same in MS Word.
> 
> I know practically nothing about using MS XML language, are there any tools
> available for 4D that would let me construct Tables and populate the
> contents directly to MS Word format?
> 
> Any thoughts?
> 
> 
> Jim Labos - infobase
> 
> 
> 
> 
> 
> -
> Jim Labos - infobase
> --
> Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Best way to get HTML Tables to MS Word tables

2018-02-23 Thread Jim Labos - infobase via 4D_Tech
I've been doing some HTML tables that end up in Word for a while now but
until now there was no need to get it to render any better so if it ain't
broke.

However now comes the need to have tables render as exact as possible in
Word. Now I say /from/ HTML because I have been doing it that way in past
but going direct to Word would be even better.

The good thing in HTML is it is simple to develop and maintain as well as
debug. The problem many things don't end up looking the same in MS Word.

I know practically nothing about using MS XML language, are there any tools
available for 4D that would let me construct Tables and populate the
contents directly to MS Word format?

Any thoughts?


Jim Labos - infobase





-
Jim Labos - infobase
--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**