| | |
Overwrite file print setting in CMD
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2008
Posts: 1
Reputation:
Solved Threads: 0
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
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
![]() |
Other Threads in the C# Forum
- Previous Thread: Printing through process
- Next Thread: Protected Memory error, WebBrowser Control.
| Thread Tools | Search this Thread |
.net access ado.net algorithm animation array barchart bitmap box broadcast buttons c# check checkbox client color combobox control conversion csharp custom database datagrid datagridview dataset datastructure datetime degrees development draganddrop drawing encryption enum event excel file files form format forms function gdi+ httpwebrequest image index input install iteration java label list listbox listener mandelbrot math mouseclick mysql operator packaging path photoshop picturebox pixelinversion post programming radians regex remote remoting richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer tutorial update usercontrol validation view visualstudio webbrowser wia windows windowsformsapplication winforms wpf xml





