How we can export the ColdFusion query results to DOC file? Well before writing this I researched a lot in Internet but did not found a good Answer anyways! So i thought now i should share my small snippet with you guys how did I do that. Using a simple technique to make work from query to DOC using Coldfusion:
Here is the coding sample…
In the code below, we are using the component where we are fetching the query results and putting them in the endUsers variable. Now we run a simple query and below running will generate the code as we expected.
The below code is provided with the HELP of SidFishes (an EE Coldfusion Expert)
This may not be the best technique but it works. Another technique of doing the same is which I tried my way is listed below:
That’s Pretty Simple Techniques, try it and You will be amazed to see its results! The technique we presented is far by very basic technique. Although there are many custom tags available which can by far generate good results through the use of CSS and many HTML Tag. But they are paid ones!
This is the simple technique in which we can generate our result in the doc File! For quick view. If you are not really serious about the formatting and want to show it as simple and as fast you can. Try the technique which suits you and enjoy.