Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
how to write the contents of the report to a text file
gunasekar
Hi all,<br />
<br />
I need to develop a report that should write its table content to a specified text file.<br />
<br />
for eg,<br />
<br />
I have created a file in the path "D:/filename.txt"<br />
<br />
to do this i have used following script in Initialize method:<br />
<br />
<span class='bbc_underline'>importPackage (Packages.java.io, Packages.java.text);<br />
fos = new java.io.FileOutputStream("D:/filename.txt");<br />
printWriter = new java.io.PrintWriter( fos );</span><br />
<br />
To write the table contents of the report into this file what i have to do? <br />
<br />
<br />
<br />
Please guide me to do this..
Find more posts tagged with
Comments
mwilliams
Are you wanting to know the script needed to write to the file? Or are you wanting to know where to put the write script at? If where, what are you trying to write out? Sections of a report or groups within a table? Or both? Let me know.
gunasekar
Hi William thanks for your reply,
I want to display the entire contents of a table into a text file. The script to write the content of a table column is " printWriter.println(this.row["column_name"]); at onrender method of the table " if not please correct me. When i follow the above steps i am getting error.
Even i dont know how to write the sections of a report. so guide me how to do this.