XnView print command line arguments for selecting printer

Ask for help and post your question on how to use XnView Classic.

Moderators: XnTriq, helmut, xnview

darkm4n
Posts: 1
Joined: Tue Jan 18, 2022 3:53 pm

XnView print command line arguments for selecting printer

Post by darkm4n »

Hi,

I am trying to print a JPG image from command line but I need to select different printers for it, searching the internet I did found some old threads regarding this feature and the usage of it like this:

xnview.exe -print="MyPrinter name" C:\test.jpg

But when using this the argument MyPrinter name is ignored and the image is printed on the printer I last used on GUI.
Also, I did have a look at the INI settings file and couldn't find a field regarding printer name.

My question is, how can a printer be selected for printing from command line ?


Many thanks!
User avatar
xnview
Author of XnView
Posts: 38712
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnView print command line arguments for selecting printer

Post by xnview »

are you sure that you use the correct printer name?
Pierre.