Solved

IrfanView - Command Line

Posted on 2013-01-08
4
898 Views
Last Modified: 2013-01-20
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 commando line it use the last used FORMAT.
I want to use the format that is defualt for the printer i want to print out for!


So Can I somehow make the format as input to the commandolines...
0
Comment
Question by:kavvis
  • 3
4 Comments
 

Author Comment

by:kavvis
ID: 38754003
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?
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 38754211
Yeah give it a try. Initially, change the line manually to see if it makes any difference

http://www.vbforums.com/showthread.php?233989-VB-Handy-INI-file-manipulation-sample

http://www.freevbcode.com/ShowCode.asp?ID=306
0
 

Author Comment

by:kavvis
ID: 38754271
That you.. I made Two diffrent .ini files instead, and when Then when i make The print i change The location on The file..

This work, i hope it's fast enogh.. Else i Will test your tips!
0
 

Author Closing Comment

by:kavvis
ID: 38798209
Thank you will test your code
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question