Exporting to Powerpoint from Coldfusion - coldfusion

I was interested in being able to export data from Coldfusion to Powerpoint. I saw this section on StackOverflow
Generating Powerpoint PPT with ColdFusion?
which was posted almost 3 years ago. I was hoping there would be something more relevent since then instead of using the Apache POI.
I have tried using the cfcontent tag similar to how you would export to excel, I am able to get ppt to open, but a blank template opens up when I use cfcontent type="application/vnd.ms-powerpoint". Ultimately, I will be using this to try to export charts to a ppt slide. I believe cfcharts with the jpg option is the best solution, although I am currently using FusionCharts on my site itself.
Sorry I'm such a noob, but any suggestions or advice would be greatly appreciated.
Thanks!

Have you looked into the <cfpresentation /> family of tags? It does exactly what you are looking for, allows you to generate PowerPoint files on the server. http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7910.html

Related

Automatic page break inside table cells in Latex

I've a question about long tables in Latex.
How is it possible to automatically break text content inside a long table cell.
I read lot of articles and examples and tried it (e.g. longtable)
But I still can not believe that there should be no solution for this. Currently I am using the Apache FOP processor to generate PDF documents via XSLT. Here, the tables are wrapped within a cell.
Apache FOP example
Have someone the same problem and have a solution?
Thank you, Frank

DocBook to OOXML

Our users are asking for a simple way to convert DocBook XML to OOXML (DocBook to Word DOCX) and back. The editing in house is done in Oxygen XML Editor but sometimes they have to send files for editing to other people and Word is still the de facto standard.
I imagine this will be a major undertaking so any help is appreciated.
EDIT:
Found docbook2wordml XSL stylesheets. This could be useful.
Try Oxgarage: http://www.tei-c.org/oxgarage/ it converts between DocBook and OOXML (and other formats) via TEI.
You can use it as a web service, or you can get the XSLT 2.0 scripts here: https://github.com/TEIC/Stylesheets/
Edit: updated links!
OxGarage http://oxgarage.oucs.ox.ac.uk:8080/ege-webclient/ seems down.
Alternatively, you can get up running your own OxGarage service using the OxGarage docker image, which should be the preferable way.
Also you could try building an OxGarage docker image yourself using this oxgarage-docker GutHub repo. Once it's up running, then you can use the OxGarage web client in your browser:
http://<your host name e.g., localhost>:8080/ege-webclient

Office Template - Embedded VB Script Inactive/Unspported?

First off, this might be the simplest questions on this site depending on the answer.
Question: Is Embedded VB scripts supported in Office Word templates (.dot/.dotx)?
If not, thank you!
If it is, why is this not working:
http://postimage.org/image/2uubobv38/
It works flawlessly in a .doc format but not when i try to save it as a template.
I'm running Office 2007 but 2003 doesn't work either, is there something special you need to enable for using embedded scripts in a .dot file?
I don't know if this is the proper forum for questions like this, but i really don't know anywhere else to turn regarding programming in general so.. help?
Ok so after some logical debugging (read: days), i found out that it IS supported, just not in the "traditional" way of thinking.
In a normal document, you apparently use the Open() function to load things when opening the document, because that's what you do, you open the document.
When using embedded scripts in a .dot file, you're not opening the file.. you are creating a new instance of the .dot file so the function you should be using is New():
Private Sub Document_New()
UserForm1.Show
End Sub
This should show you form from "opening" a .dot file.

Django pdf question

I Want to know if there is a way I could generate a whole html document into a pdf file. I have already report lab and have done some examples with strings before in the past. But I want to know if there is a way how to change a template into some output which is a pdf file.
Take a look at Pisa/XHTML2PDF. I did some experiments with it a couple of years back but switched to pure ReportLab when it proved inadequate. It may fit your needs better than it did mine.
there is actually, the converter however lives in the paid version of ReportLab which is packages under the name rlextra. The converter is called html2rml so it would give you an RML string back which then you need to use rml2pdf to use it. It might work with the free RML implementation but you better post your question to the reportlab mailing list.

ColdFusion - converting HTML webpage to Word or PDF document

I have a webpage, where user has a possible to Print this page OR to save it on his/her computer.
How may I save it as a Word or PDF document?
Thanks.
For the MS Word requirement, most versions of Office can interpret basic html/xml. So you might consider the old cfcontent hack as a simpler alternative to POI. (The Word package is not quite as mature as the spreadsheet package.)
Basically you generate html, but use cfheader/cfcontent to tell the browser the content is really a Word document. It is obviously not a true MS Word file. But it is simpler than most options.
http://msdn.microsoft.com/en-us/library/aa155477.aspx
<cfheader name="Content-Disposition" value="attachment; filename=someFile.doc">
<cfcontent type="application/msword">
... your html code here ...
For microsoft office documents you can use the Apache POI project. This means in your coldfusion code you need to use some basic java code to call the poi methods.
However, if you choose the pdf document things are quite easier. You can use the cfdocument tag with the PDF format option
Using the POI or OpenOffice interface (depending on your version) you can create a Word doc. Using the built-in PDF generation tools, you can create a PDF doc. HOwever, you can only present that as an option.
There is no way to override the save/print menu functions. No matter how you handle it, I cna save the source document instead of the .doc or .pdf. Similarly, you cannot prevent me from printing the original document, instead of a prepared PDF.
Here is a method that has worked for me:
Create PDF or FlashPaper with ColdFusion
However, just like printing, you will have to sacrifice some graphics, so this would be best used for exporting content (but as you did not specify, I'm just clarifying that this is possible but at a cost).
Hope that helps.
Use cfdocument to display as a PDF, then they can just click the disk image to save it to their computer. Or you can use the filename= attribute of cfdocument to assign a filename to it, and it will prompt them to save it instead of displaying in the browser.