Hello,

Drupal can do a lot of things, but could it manage office documents in the following way :

Imagine you have

  • a Drupal content type with fields and values
  • a Word document with fields to be filled

Do you know if Drupal or its modules could enable users to create a new drupal content and then create and export a MS Word Document with the fields filled from this drupal content ?

I have found something with openTBSPlugin here.

Do you have any idea ?

Thanks in advance.

Benoit

Comments

WorldFallz’s picture

There's no existing module for this, but since both Drupal and the library you link are php there's no reason you couldn't custom code it.

edit:
actually, you can do this with views_data_export.

drupestre’s picture

Thank you WorldFallz, (this time you are quicker than jaypan ;) )

I've done this post if someone had had to deal with such a requirement but i will certainly do it in a custom module.
Hence this custom module would be based on views_data_export and php libraries.

For those who are interested in, i've found this php library links as well :
phpexcel
phpword
phppowerpoint

Hope it helps

Benoit

texas-bronius’s picture

For anyone reading this, there is a d.o contrib module https://www.drupal.org/project/phpexcel, at least. I don't recall if I've used it, but PHPExcel was easy enough to implement with Drupal in a custom module. I suspect @drupestre's linked PHPWord by the same shop is also just as excellent.

--
http://drupaltees.com
80s themed Drupal T-Shirts