1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

VIEW PRINT - Documentation corrected - Font size

Discussion in 'Support' started by CarlM, Feb 9, 2016.

  1. CarlM

    Joined:
    Jan 16, 2009
    Messages:
    45
    Likes Received:
    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"
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    10,029
    Likes Received:
    84
    That's not my documentation. I've forwarded it on to the developer of V for his comments.
     
  3. FileViewer

    Joined:
    Aug 3, 2011
    Messages:
    37
    Likes Received:
    0
    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.
     
  4. CarlM

    Joined:
    Jan 16, 2009
    Messages:
    45
    Likes Received:
    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.
     
  5. Alpengreis

    Joined:
    Jan 12, 2014
    Messages:
    241
    Likes Received:
    6
    The error appears in TCC only, not in TCMD within TCC tab by the way ...

    @Rex: why is this different?
     
  6. FileViewer

    Joined:
    Aug 3, 2011
    Messages:
    37
    Likes Received:
    0
    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)
     
  7. CarlM

    Joined:
    Jan 16, 2009
    Messages:
    45
    Likes Received:
    0
    What worked for me is NOT /Font:"Arial:11" but
    /Font:"Arial: 11" with a space after the colon
     
  8. Alpengreis

    Joined:
    Jan 12, 2014
    Messages:
    241
    Likes Received:
    6
    Could someone answer why the behaviour is different in TCC resp. TCMD?
     
  9. Alpengreis

    Joined:
    Jan 12, 2014
    Messages:
    241
    Likes Received:
    6
    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?
     
    #9 Alpengreis, Feb 16, 2016
    Last edited: Feb 16, 2016

Share This Page