Hi, I'm trying to generate a report using EnScript. Currently, it will read the CSV file and copy the content in a RTF file. For example, after carrying out an EnScript to generate the registry information or keyword search, the results will be output into individual CSV files.
To generate the report, I'm using the exportclass. By using "WriteTextBuffer", it will copy the content into the report. However, the end result has "_" between every character. Like for the registry CSV file, it has the content of "Product Name ". In the report RTF file, it becomes "P_r_o_d_u_c_t__N_a_m_e___". Is there any way to resolve this?
Thanks!
i think should not use enscript with poor documentation.
use pyhton glob
#!/usr/bin/python3
import re
import glob
def searchfor()
textfiles = glob.glob(r"*.txt")
for fh in textfiles
for line in open(fh)
if re.search('Case Number', line)
print(line, end='')
def main()
searchfor()
if __name__ == "__main__" main()
it search for and print each Case Number word and copy it in txt or something else extention
@nightworker Thanks for the help! This is for a school project though, so I'm limited to the use of EnScripts. Would appreciate it if you have any other solution, thanks!
I would suggest posting your question on the Enscript message board of the Encase support forum. You're much more likely to have someone there who can answer your question.