Is there any way to set up a 'Print' command and use a parameter that replicates the 'Current' button that appears in the dialog box if accessed through the gui? I am trying to create a button that silently runs 'Print' but I want it to use the current column settings. Maybe there's another workaround that I'm not thinking of.
I could not seem to find it in the documentation...
It doesn't literally pick up the current format, though. I think it picks up the format for the folder (ignoring content-type formats and manual changes made to the format).
Thanks Leo, that does what I want. If I add/remove a column to the display, it does pick that up, so that was the main issue I was having. I wanted the ability to add 'Total File Count' before printing and I don't like to keep that column there normally cuz it slows things down...
Actually, it's still giving me the following issue:
With the 'Size' column, the 'current' button from the print dialog makes this column wider than it is made with the 'Print FOLDER FORMAT=!folder'
Meaning, if I run it without the print dialog, the 'size' column is not wide enough to show the data but if I were to hit 'current' in the print dialog, it would widen this column (only this column seems to have a different column size - all the others don't change) and it would then display all the data in the printout.
If it matters, I have my columns set to 'auto size columns'. I think I could fix this issue if I could set the width of 'size' to a fixed setting, but then my other columns would no longer be on autosize either, and I don't want all of them to be at a fixed width.
Here's a better summary of what I'm trying to do -
I have a button that does this:
Print FOLDER FORMAT=!folder CALCSIZES=yes HEADER=top FLATVIEW=grouped TO="HP Universal Printing PCL 6"
This works just fine, and the 'Size' column prints out correctly, meaning I can see all the sizes and not '...' on some of them
I want to modify it so it does this:
Set COLUMNSTOGGLE=filecounttotal(1)
Print FOLDER FORMAT=!folder CALCSIZES=yes HEADER=top FLATVIEW=grouped TO="HP Universal Printing PCL 6"
However, when I do this, for some reason, the 'Size' column no longer prints out at the proper width, and it gets set to a width that is too small, so for some folders I see something like '1....'
I can't figure out why adding the filecounttotal causes the 'Size' column to act this way.
If you add or remove columns with auto-size enabled I think it will auto-size all the other columns automatically.
So after adding the column you want, you might need to have another command which sets the width of the size column... Hmm, except I can't see a command to do that (only one to auto-size the columns or make them the same width as those in the other half of a dual-display window).
It might be worth sending a feature request (for a column size command) and/or bug report (for the print folder command to auto-size its columns properly) to GPSoftware if nobody here can think of a good solution.