Hi Patrick,
I have approached this differently.
On disk, I have a php file for every “report” that I want to produce. Inside
that php file I have a placeholder. When I need to run my report, I generate a
series of php statements that define a data structure that I then insert into a
copy the
I forgot to answer to this: What do you have in your autoloader.php file?
it is not mine, but the phpword one. It is a part of the php librairy.
Patrick
-
Patrick EMANUEL
Administrator
www.association-qualisoft.eu
(Soft1002,
What's "Export_Echappement"? (echappement means "escape", right? Does this
method add escape characters?
Yes, indeed. I translate some method names but i'm too french sometimes ;-)
but you catch the wording.
I will update in my componant, thanks.
Here is the code:
C_TEXT($1;$0)
If (Count
That's excellent, thanks Patrick!
A couple of questions ...
$script_t:=$script_t+"$section->addText(htmlspecialchars('"+Export_
Echappement($Texte)+"'));\r"
What's "Export_Echappement"? (echappement means "escape", right? Does this
method add escape characters?
*SET DATABASE PARAMETER*(PHP use
Hi,
I've extract and compile code lines for you.
If you have able to participate to the next Summit, you will get special
gift containing some example of phpword code.
It works with the v0.12.1
here the code, and let me know.
C_BLOB($Blob)
$NomSortie:="DocumentName.docx"
$PhpCode:=Create
Patrick and/or Dani ...
I wonder if you would be willing to share some basic code to create a Word
document with phpword? I am having trouble getting it to work. If you could
share just a snippet that creates a very simple document, that would be
very much appreciated!
Thanks
Pat
On 22 January
Oh wow ... I'm going to give phpword a try. thanks for the suggestion.
On 21 January 2018 at 20:47, Dani Beaubien via 4D_Tech <4d_tech@lists.4d.com
> wrote:
> +1 for phpword. I have been using for the last few months and it is fast
> and works very well.
>
> Dani
>
>
>
+1 for phpword. I have been using for the last few months and it is fast and
works very well.
Dani
**
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Did you try with phpword?
It is a php librairy usefull to create .DOCX document.
Patrick
-
Patrick EMANUEL
Administrator
www.association-qualisoft.eu
(Soft1002, Simply Asso & QS_Toolbox)
--
Sent from:
Hi Miyako,
Hmmm ... But it DOES work that way as long as:
a) the Zip archive doesn't include the main folder
and
b) all the files contained in the archive are valid
The second criterion is the tricky one ... if something is wrong with one
of the XML files you simply get an error message saying
On Thu, Jan 18, 2018 at 12:39 PM, Pat Bensky via 4D_Tech <
4d_tech@lists.4d.com> wrote:
>
> If the two folders (Brownies and Brownies-CB) contain the exact same
> contents, why would one work and the other, not?
>
> Note - there is one hidden file in the package and I checked to make sure
> that
although it's true that DOCX files are created using the zip algorithm,
you can't just zip a folder and change it's fie extension; that's not how it
works.
to prove that point, you could change the extension of a valid DOCX to ZIP,
zip it back, and change it's extension back to DOCX. it's now a
Pat,
something simpler?
create an .RTF file - (re)name it .docx word is happy to open it
Mac OS x 10.9 and office 2011
Chip
On Thu, 18 Jan 2018 11:39:14 +, Pat Bensky via 4D_Tech wrote:
> I think I am slowly losing my sanity.
> Trying to create DOCX files from 4D.
> My code creates the
13 matches
Mail list logo