VIEW PRINT - Documentation corrected - Font size

Jan 16, 2009
45
0
In order to print all files in a directory with switches, I have been figuring out VIEW /P which will print files. See for gory details: https://jpsoft.com/forums/threads/view-print-multiple-files-switches-fail.7163/#post-41096

I've solved the final piece: the documentation for font size is wrong. If you use it, you cannot change font size.
Current (wrong) documentation:
/Font:"Font Name",size eg, /Font:"Courier New",10​
Correct (future) documentation:
/Font:"Font Name: size" eg, /Font:"Courier New: 10"​

Example, to correctly print all *.txt files in current directory, with left margin, page header:
VIEW *.txt /P /Font:"Arial: 11" /LM:0.75 /Header:"%%e;%%f;Page %%p"
 
VIEW *.txt /P /Font:"Arial: 11" /LM:0.75 /Header:"%%e;%%f;Page %%p"
This syntax is incorrect. The font size needs to be specified outside of the quotes otherwise it is taken to be part of the font name.

The correct syntax should be: VIEW *.txt /P /Font:"Arial",11 /LM:0.75 /Header:"%%e;%%f;Page %%p"

However, this results in an error message.It seems there is a problem in how the comma is parsed.

I will talk to Rex about the best way to fix this.
 
Jan 16, 2009
45
0
I don't believe you are correct. The reason is simple; the following works:
VIEW *.txt /P /Font:"Arial: 11" /LM:0.75 /Header:"%%e;%%f;Page %%p"
I have tested it with different fonts and different sizes.
 
Jan 12, 2014
426
7
Switzerland, SO
This syntax is incorrect. The font size needs to be specified outside of the quotes otherwise it is taken to be part of the font name.

The correct syntax should be: VIEW *.txt /P /Font:"Arial",11 /LM:0.75 /Header:"%%e;%%f;Page %%p"

However, this results in an error message.It seems there is a problem in how the comma is parsed.

I will talk to Rex about the best way to fix this.
The error appears in TCC only, not in TCMD within TCC tab by the way ...

@Rex: why is this different?
 
I don't believe you are correct.
No. It doesn't work. But it will work if you use a comma instead of a colon.

That is, /Font:"Arial:11" will not work but /Font:"Arial,11" will.

Note that there must not be a space after the comma. ("Arial,11" will work, "Arial, 11" will not)
 
Jan 16, 2009
45
0
What worked for me is NOT /Font:"Arial:11" but
/Font:"Arial: 11" with a space after the colon
 
Jan 12, 2014
426
7
Switzerland, SO
This syntax is incorrect. The font size needs to be specified outside of the quotes otherwise it is taken to be part of the font name.

The correct syntax should be: VIEW *.txt /P /Font:"Arial",11 /LM:0.75 /Header:"%%e;%%f;Page %%p"

However, this results in an error message.It seems there is a problem in how the comma is parsed.

I will talk to Rex about the best way to fix this.
NOW, even in TCC this gives me NO MORE an error. What the hell - I'm so confused about this ...

EDIT: after new retests, it SEEMS, I never had this problem. I ASSUME this has nevertheless then to do with my Full Version of V (V64) ... or with my OS version or -language or with my TCMD/TCC setting or whatever ;-)

Or what can be the reason to not receive an error with the syntax above?
 
Last edited:
Similar threads
Thread starter Title Forum Replies Date
C View Print Wrap - please break at whitespace Support 3
C VIEW PRINT /Wrap doesn't work Support 0
C WAD VIEW print multiple files - switches fail Support 10
T VIEW only works from command line Support 14
vefatica VIEW ... remember the UTF-8 setting? Support 0
Alpengreis Documentation Minor issue in help file for view /E Support 1
vefatica VIEW wrap searches? Support 2
R Documentation Help Nit > bdebugger View Menu Support 0
Joe Caverly Why does TCCRT return VIEW as an internal command? Support 6
Joe Caverly Pipe into VIEW and search Support 12
vefatica VIEW ... CommandPrompt ... TC21 ... unregistered Support 6
vefatica Start VIEW with the toolbar showing? Support 5
rps How to? Piping to View /gb Support 1
vefatica VIEW ... remember no toolbar Support 0
E Fixed View command broken in version 21.0 build 22 Support 9
vefatica File Explorer ... remember view settings? Support 5
vefatica "View" settings still not remembered Support 10
vefatica TCMD ... remember View settings? Support 7
MickeyF TCC v16 crashes when I hit F1 to view help Support 9
R V19 - 'V' and 'View" Support 6
cgunhouse Crash on View/Folder Support 1
M View doesn't recognize Ctrl+End and Ctrl+Pos1 Support 2
vefatica Speaking of VIEW Support 18
nikbackm VIEW broken in v18 + Windows 10 Support 8
Alpengreis [Bug?] View (V) Prefs Error (TC 18.00.27 x64) Support 4
D Fixed Cut and paste in TC's file/folder view does not remove file Support 17
E View (internal command) does nothing now Support 3
vefatica VIEW and chars in 128-255 Support 4
MickeyF where to view the latest JPSoft newsletter? Support 0
Joe Caverly VIEW window in a TCC tab window problems Support 5
vefatica Fixed No text in List View! Support 4
D Folder/List view changed in v15 Support 8
D How to? V15.00.30 -(help!) - Floating view windows don't open Support 1
nikbackm Fixed v15: VIEW - encoding and CSV issues Support 9
T view command not working Support 5
S TCMD No List-View with Libraries? Support 5
M Sync folder/list view with command window? Support 2
C Fixed Starting editor from VIEW Support 9
J VIEW doesn't work again Support 16
A How to? Invoke View Clipboard from command line Support 8
S Fixed View and V do not work in new 13.04.52 x64 installation Support 11
jwblyth How to? Help will not Load in View (File Viewer)?? Support 4
M Folder View Freezing Support 10
Frank is the search-function in VIEW working? Support 2
H VIEW not "screen reader friendly: Support 7
J VIEW crash on redirected input and numbered bookmarks Support 6
gschizas View uses Windows-1252 codepage instead of System codepage Support 4
D view in tab and focus follows mouse Support 10
D View Help Keyboard Support 1
rconn 13.0.18 Test build for VIEW problem Support 23

Similar threads