Column width of report or folderreport
Column width of report or folderreport
If I wanted to create a visual friendly listing using report() or folderreport(), for each column of data that I want is there any way to set the width of each column without outputting it as a table in an html file for column alignment? Granted I know that may truncate some data in some places.
Re: Column width of report or folderreport
Not directly but using a one / multiple
regexreplace()
on the report you've generated would be a viable optionOne of my scripts helped you out? Please donate via Paypal
Re: Column width of report or folderreport
Thank you. I will look into that.
Re: Column width of report or folderreport
A little tool...
In other words, to format a report that is inside the clipboard (and that is using "|" as the field separator) you'd call it:
which would set the width limit to 40 for the first column and 20 for the third column, etc.
All other columns are left as they are
It will store that new report in the clipboard...
Code: Select all
Mandatory args
==============
01. /columns=1:15,3:5 -> <x> = column : <y> = width | , = separator
Optional args
=============
02. /srcFile="a file with full path"
If the argument is not given, the clipboard will be searched for the separator
If the separator (and at least one <crlf>) is not found in the clipboard, quit
If the argument is used but the file does not exist, quit
03. /columnSep=";"
Default is: "|"
04. /padChar="_"
Default is: " " (a space)
05. /removeLastSep=1
Default is: 0
columnize.exe /columns=1:40,3:20,4:8
which would set the width limit to 40 for the first column and 20 for the third column, etc.
All other columns are left as they are
It will store that new report in the clipboard...
- Attachments
-
- Columnize_v0.1.zip
- (30.87 KiB) Downloaded 43 times
One of my scripts helped you out? Please donate via Paypal
Re: Column width of report or folderreport
That's awesome, thanks highend. I'm looking forward to testing this out!