Solved

IrfanView - Command Line

Posted on 2013-01-08
4
884 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
A short film showing how OnPage and Connectwise integration works.

914 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now