Re: Editing MS Word Documents with ColdFusion
require me to replicate the rows many times depending on the amount of records in the database. Not trivial, but feasible. I have done some work where I generate congress badges with many fields and even images like logo and photographs. Open Office is definitely not a solution. I've never seen a Word document it was able to render properly. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351432 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Editing MS Word Documents with ColdFusion
OK thanks Claude, will have a play around with this require me to replicate the rows many times depending on the amount of records in the database. Not trivial, but feasible. I have done some work where I generate congress badges with many fields and even images like logo and photographs. Open Office is definitely not a solution. I've never seen a Word document it was able to render properly. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351454 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Editing MS Word Documents with ColdFusion
Great suggestions guys, thanks. I will give open office a try... Hi, Last year i asked a question about the best way to open an MS Word document and edit the contents + formatting with ColdFusion. I was told at the time that the best way to do it was using a Word. Application object. I am finding this object extremely slow in writing and reformatting the documents. Has there been any new technology that will allow me to do this in a different way? Or has CF 10 come out with new methods to allow me to do this Many thanks Richard ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351417 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Editing MS Word Documents with ColdFusion
thanks for the links Gerald. I have usually only worked purely with CF, are there any guides on general rules on converting Java to CF? or how to use Java with CF? thanks That is a good idea. Open Office *is* written in Java. I was curious so I looked around on the web for some code examples and the ones I found were in Java. So, in theory at least, you can create the Java objects in CF and use the code examples as a guide. Here are some examples that I found http://weblogs.java.net/blog/tchangu/archive/2005/12/open_office_jav. html http://openofficejava.blogspot.com/2009/05/openofficeorg-api.html And there is a OO developer Guide. http://wiki.services.openoffice. org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide G! On Fri, Jun 1, 2012 at 3:40 PM, Russ Michaels r...@michaels.me.uk wrote: I believe you can also use open office just install it on the server and call objects or it may have an api. Might be faster than using msword On Jun 1, 2012 7:32 PM, Eric Roberts owner@threeravensconsulting. com wrote: Look at the Apache Jakarta project's POI java classes. I believe they have ways to mod word docs. They are mostly well known for excel...but the POI classes can handles all office docs if I am not mistaken. -Original Message- From: Richard White [mailto:rich...@re-base.net] Sent: Friday, June 01, 2012 11:59 AM To: cf-talk Subject: Re: Editing MS Word Documents with ColdFusion Alternatively is there any creative ideas to read in the contents of a word document along with its formatting, and then replicate it with additional content in a different format such as PDF? thanks for any suggestions Hi, Last year i asked a question about the best way to open an MS Word document and edit the contents + formatting with ColdFusion. I was told at the time that the best way to do it was using a Word. Application object. I am finding this object extremely slow in writing and reformatting the documents. Has there been any new technology that will allow me to do this in a different way? Or has CF 10 come out with new methods to allow me to do this Many thanks Richard ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351418 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Editing MS Word Documents with ColdFusion
Maybe there is another way around this: basically clients are saying they want to create the look-feel and layout of reports for themselves. We were thinking they could do this in Word and then upload the file, our application would search the document and insert the data in the spaces they have indicated (which could also be in grid format). Can you see any other easier way we could achieve this? thanks Hi, Last year i asked a question about the best way to open an MS Word document and edit the contents + formatting with ColdFusion. I was told at the time that the best way to do it was using a Word. Application object. I am finding this object extremely slow in writing and reformatting the documents. Has there been any new technology that will allow me to do this in a different way? Or has CF 10 come out with new methods to allow me to do this Many thanks Richard ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351419 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Editing MS Word Documents with ColdFusion
Can you see any other easier way we could achieve this? Yes: identify each field with some string, Close the document in RTF format which is a pure text file, then read the file and search-replace the fields by their values. The result is readable under MS Word. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351420 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Editing MS Word Documents with ColdFusion
excellent idea. although some fields may be in a grid and require me to replicate the rows many times depending on the amount of records in the database. Can you see any other easier way we could achieve this? Yes: identify each field with some string, Close the document in RTF format which is a pure text file, then read the file and search-replace the fields by their values. The result is readable under MS Word. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351426 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Editing MS Word Documents with ColdFusion
Think with CF10 I saw in the docs you have to install open office and can then use cfdoc to open word files and write as pdf. Maybe something to look into. Byron Mann Lead Engineer and Architect Hostmysite.com On Jun 1, 2012 4:27 PM, Gerald Guido gerald.gu...@gmail.com wrote: That is a good idea. Open Office *is* written in Java. I was curious so I looked around on the web for some code examples and the ones I found were in Java. So, in theory at least, you can create the Java objects in CF and use the code examples as a guide. Here are some examples that I found http://weblogs.java.net/blog/tchangu/archive/2005/12/open_office_jav.html http://openofficejava.blogspot.com/2009/05/openofficeorg-api.html And there is a OO developer Guide. http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide G! On Fri, Jun 1, 2012 at 3:40 PM, Russ Michaels r...@michaels.me.uk wrote: I believe you can also use open office just install it on the server and call objects or it may have an api. Might be faster than using msword On Jun 1, 2012 7:32 PM, Eric Roberts ow...@threeravensconsulting.com wrote: Look at the Apache Jakarta project's POI java classes. I believe they have ways to mod word docs. They are mostly well known for excel...but the POI classes can handles all office docs if I am not mistaken. -Original Message- From: Richard White [mailto:rich...@re-base.net] Sent: Friday, June 01, 2012 11:59 AM To: cf-talk Subject: Re: Editing MS Word Documents with ColdFusion Alternatively is there any creative ideas to read in the contents of a word document along with its formatting, and then replicate it with additional content in a different format such as PDF? thanks for any suggestions Hi, Last year i asked a question about the best way to open an MS Word document and edit the contents + formatting with ColdFusion. I was told at the time that the best way to do it was using a Word. Application object. I am finding this object extremely slow in writing and reformatting the documents. Has there been any new technology that will allow me to do this in a different way? Or has CF 10 come out with new methods to allow me to do this Many thanks Richard ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351415 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Editing MS Word Documents with ColdFusion
Alternatively is there any creative ideas to read in the contents of a word document along with its formatting, and then replicate it with additional content in a different format such as PDF? thanks for any suggestions Hi, Last year i asked a question about the best way to open an MS Word document and edit the contents + formatting with ColdFusion. I was told at the time that the best way to do it was using a Word. Application object. I am finding this object extremely slow in writing and reformatting the documents. Has there been any new technology that will allow me to do this in a different way? Or has CF 10 come out with new methods to allow me to do this Many thanks Richard ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351404 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Editing MS Word Documents with ColdFusion
Look at the Apache Jakarta project's POI java classes. I believe they have ways to mod word docs. They are mostly well known for excel...but the POI classes can handles all office docs if I am not mistaken. -Original Message- From: Richard White [mailto:rich...@re-base.net] Sent: Friday, June 01, 2012 11:59 AM To: cf-talk Subject: Re: Editing MS Word Documents with ColdFusion Alternatively is there any creative ideas to read in the contents of a word document along with its formatting, and then replicate it with additional content in a different format such as PDF? thanks for any suggestions Hi, Last year i asked a question about the best way to open an MS Word document and edit the contents + formatting with ColdFusion. I was told at the time that the best way to do it was using a Word. Application object. I am finding this object extremely slow in writing and reformatting the documents. Has there been any new technology that will allow me to do this in a different way? Or has CF 10 come out with new methods to allow me to do this Many thanks Richard ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351405 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Editing MS Word Documents with ColdFusion
I believe you can also use open office just install it on the server and call objects or it may have an api. Might be faster than using msword On Jun 1, 2012 7:32 PM, Eric Roberts ow...@threeravensconsulting.com wrote: Look at the Apache Jakarta project's POI java classes. I believe they have ways to mod word docs. They are mostly well known for excel...but the POI classes can handles all office docs if I am not mistaken. -Original Message- From: Richard White [mailto:rich...@re-base.net] Sent: Friday, June 01, 2012 11:59 AM To: cf-talk Subject: Re: Editing MS Word Documents with ColdFusion Alternatively is there any creative ideas to read in the contents of a word document along with its formatting, and then replicate it with additional content in a different format such as PDF? thanks for any suggestions Hi, Last year i asked a question about the best way to open an MS Word document and edit the contents + formatting with ColdFusion. I was told at the time that the best way to do it was using a Word. Application object. I am finding this object extremely slow in writing and reformatting the documents. Has there been any new technology that will allow me to do this in a different way? Or has CF 10 come out with new methods to allow me to do this Many thanks Richard ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351407 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Editing MS Word Documents with ColdFusion
That is a good idea. Open Office *is* written in Java. I was curious so I looked around on the web for some code examples and the ones I found were in Java. So, in theory at least, you can create the Java objects in CF and use the code examples as a guide. Here are some examples that I found http://weblogs.java.net/blog/tchangu/archive/2005/12/open_office_jav.html http://openofficejava.blogspot.com/2009/05/openofficeorg-api.html And there is a OO developer Guide. http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide G! On Fri, Jun 1, 2012 at 3:40 PM, Russ Michaels r...@michaels.me.uk wrote: I believe you can also use open office just install it on the server and call objects or it may have an api. Might be faster than using msword On Jun 1, 2012 7:32 PM, Eric Roberts ow...@threeravensconsulting.com wrote: Look at the Apache Jakarta project's POI java classes. I believe they have ways to mod word docs. They are mostly well known for excel...but the POI classes can handles all office docs if I am not mistaken. -Original Message- From: Richard White [mailto:rich...@re-base.net] Sent: Friday, June 01, 2012 11:59 AM To: cf-talk Subject: Re: Editing MS Word Documents with ColdFusion Alternatively is there any creative ideas to read in the contents of a word document along with its formatting, and then replicate it with additional content in a different format such as PDF? thanks for any suggestions Hi, Last year i asked a question about the best way to open an MS Word document and edit the contents + formatting with ColdFusion. I was told at the time that the best way to do it was using a Word. Application object. I am finding this object extremely slow in writing and reformatting the documents. Has there been any new technology that will allow me to do this in a different way? Or has CF 10 come out with new methods to allow me to do this Many thanks Richard ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351410 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Editing MS Word Documents with ColdFusion
Hi, Last year i asked a question about the best way to open an MS Word document and edit the contents + formatting with ColdFusion. I was told at the time that the best way to do it was using a Word.Application object. I am finding this object extremely slow in writing and reformatting the documents. Has there been any new technology that will allow me to do this in a different way? Or has CF 10 come out with new methods to allow me to do this Many thanks Richard ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351375 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm