Announcement

Collapse
No announcement yet.

Send Printer size from commandline... FORMAT

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Send Printer size from commandline... FORMAT

    Hi need to send the printer size with the command line,
    I have to diffrent printers.. and I want to run this script..

    C:\Program Files (x86)\IrfanView\i_view32.exe C:\02 \121116.tif /killmesoftly /silent /print=Printer01 ( This need FORMAT 100X100)

    C:\Program Files (x86)\IrfanView\i_view32.exe C:\06 \12ere16.tif /killmesoftly /silent /print=Printer02 ( This need FORMAT 150X150)





    I can make the printout if I open the .tiff manuell in the software.. and choice the korrekt FORMAT
    but it seems like when I run the program from the commandoline it use the last used FORMAT


    So Can I somehow make the format as input to the commandolines...

    #2
    what I can understand the application uses the last "knowed" settingings in the .ini file..





    I made one print out with the both printers so se what changes...
    I can onlye se this lines changes.. (this is in the "i_view32.ini" )




    AutoRotate=0
    Option=1 Option=2
    Left=0.00
    Top=0.00
    Inches=0
    ScaleX=10.00
    ScaleY=10.00
    Centered=0
    MultipageOpt=1
    PageRange1=1
    PageRange2=1
    CustomPages=1;3;4;
    EvenOdd=0
    Copies=1
    Head=0
    HeadTxt=
    Collate=1
    Foot=0
    FootTxt=
    FontParam=-13|0|0|0|400|0|0|0|0|1|2|4|49|
    Font=Courier
    Printer=Printer01 Printer=Printer02
    Orient=1
    Size=120 Size=9
    Src=1 Src=15
    Color=1
    Duplex=1
    SizeTxt=A4



    Maybe I can change this lines in the "i_view32.ini" from my VB.net before make the print?
    Then it should start?

    Comment


      #3
      I often make changes to the Irfanview ini file using a VBS file that I posted here so I am sure you could easily do it with VB.net

      Let us know how you get on.

      Comment on first post added: I just looked again at your first post. I think the problem with your command line is the /killmesoftly entry. You do not need it if you use the /print= [printername] option. That will close Irfanview anyway after the print is done.

      It is not stated explicitly but I have only ever seen /killmesoftly used at the end of a command line. I suspect that by placing it earlier in the line, it may then not accept another command that also asks the program to close down and the /print=[printername] option is being treated as just /print, causing the default printer to be used instead of the one specified.

      Try C:\Program Files (x86)\IrfanView\i_view32.exe C:\02 \121116.tif /silent /print=Printer01
      Last edited by Mij; 08.01.2013, 09:56 PM. Reason: Comment on first post added

      Comment

      Working...
      X