Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Coldfusion - converting Excel files to PDF

Posted on 2014-01-30
2
Medium Priority
?
984 Views
Last Modified: 2014-01-30
Hello,

Does anyone know if it's possible to convert Excel files to PDF. I was looking into cfspearsheet but it seems like it's not what I'm looking for. I also looked into OpenOffice but it looks like it can only convert the files to CVS or HTML.

Thank you!
0
Comment
Question by:HumanScaleDev
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 52

Accepted Solution

by:
_agx_ earned 2000 total points
ID: 39821538
If you're using CF9+ with OpenOffice, try using <cfdocument>. Though the CF docs don't mention Excel => PDF specifically, the conversion is powered by OpenOffice. So whatever conversions OpenOffice supports, cfdocument should support too. Try something like this:

http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WS692D73AF-6338-495d-9E47-C2ECD8BF9307.html

<cfdocument
    format="pdf"
    srcfile="C:\documents\MyDocument.xls"
    filename="C:\documents\MyDocument.pdf">
</cfdocument>
0
 

Author Closing Comment

by:HumanScaleDev
ID: 39821570
Awesome! thanks!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
Recently while working on a project I got a very annoying cfdocument has no body error message. I had never seen this error before. So I checked the code. The code was pretty simple; it was Just showing me the cfdocumnt tag and inside that tag a …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question