EnScript Report Hel...
 
Notifications
Clear all

EnScript Report Help

4 Posts
3 Users
0 Likes
398 Views
 TCSS
(@tcss)
Posts: 4
New Member
Topic starter
 

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!

 
Posted : 11/08/2014 1:43 pm
nightworker
(@nightworker)
Posts: 134
Estimable Member
 

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

 
Posted : 11/08/2014 3:32 pm
 TCSS
(@tcss)
Posts: 4
New Member
Topic starter
 

@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!

 
Posted : 11/08/2014 9:48 pm
(@mkel2000)
Posts: 24
Eminent Member
 

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.

 
Posted : 12/08/2014 2:45 am
Share: