Solved

IrfanView - Command Line

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

762 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