Overwrite file print setting in CMD

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2008
Posts: 1
Reputation: ALI123 is an unknown quantity at this point 
Solved Threads: 0
ALI123 ALI123 is offline Offline
Newbie Poster

Overwrite file print setting in CMD

 
0
  #1
Jul 3rd, 2008
Hi all,

I have develop the c# console application in which I am going to print command with print orientation like landsacpe/Portrait. But I noticed that the actual setting of the file over writr the console command. For example I have a *.xls file and set its printing property as landscape. and when I try to print this file as portrait through console(COMMAND PROMT) it overwrite the command and print as Landscape.

here is code

if (args[2].ToLower() == "landscape")
oPS.DefaultPageSettings.Landscape = true;
else if (args[2].ToLower() == "portrait")
oPS.DefaultPageSettings.Landscape = false;

ali
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 59
Reputation: FaridMasood is an unknown quantity at this point 
Solved Threads: 0
FaridMasood's Avatar
FaridMasood FaridMasood is offline Offline
Junior Poster in Training

Re: Overwrite file print setting in CMD

 
0
  #2
Jul 5th, 2008
I am also facing the same problem please someone help up
Thanks and Best of Lusk,

Farid ud din Masood
MS.c (CS)
University of Agriculture, Faisalabad
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC