Click here to Skip to main content
15,911,711 members
Home / Discussions / C#
   

C#

 
QuestionHow to provide help for console application Pin
zxc8918-Sep-06 22:57
zxc8918-Sep-06 22:57 
AnswerRe: How to provide help for console application Pin
Stefan Troschuetz18-Sep-06 23:24
Stefan Troschuetz18-Sep-06 23:24 
AnswerRe: How to provide help for console application Pin
Green Fuze19-Sep-06 0:11
Green Fuze19-Sep-06 0:11 
AnswerRe: How to provide help for console application Pin
zxc8919-Sep-06 0:40
zxc8919-Sep-06 0:40 
QuestionHow do you get the current active application name ? Pin
CJayMeister18-Sep-06 22:42
CJayMeister18-Sep-06 22:42 
AnswerRe: How do you get the current active application name ? Pin
S. Senthil Kumar19-Sep-06 2:43
S. Senthil Kumar19-Sep-06 2:43 
GeneralRe: How do you get the current active application name ? Pin
CJayMeister19-Sep-06 2:54
CJayMeister19-Sep-06 2:54 
QuestionPrinting options C# Pin
Andrew Mercer18-Sep-06 22:36
Andrew Mercer18-Sep-06 22:36 
Hi,

Having searched the web without a conclusive answer I hope someone can advise.

I need to print an already created word document and at the same time set the printer name, tray, page orientation etc... for the printer the document is to be printed to.

I have used System.Diagnostics.Process... however this does not seem to allow the setting of the various printer items mentioned above, but does allow the printing of an already existing document.

System.Drawing.Printing does allow the setting of all these items but does not seem to allow the printing of an already existing document.

Microsoft.Office.Interop.Word seems to allow the setting of some of the printer settings but in a slightly different format (eg: setting the tray for page one to be different than for the rest of the pages is not quite what I want. I need to set the tray for document 1 then a different tray for document 2).

I am being led to believe from the MSDN forums that word documents can only be printed via the Microsoft.Office... libraries. Can anyone confirm whether that is true.

If it is true then am I missing something in the API because I would like to do the following:

Print Document 1 using tray 1
Print Document 2 using tray 2

However the API seems to only allow the following:

Print Page 1 of document 1 using tray 1
Print the rest of document 1 using tray 2
Print Page 1 of document 2 using tray 1
Print the rest of document 2 using tray 2.

Is this correct or can someone please advise/assist

Thanks in advance Andrew


QuestionVoice Chat Pin
AB777118-Sep-06 22:06
AB777118-Sep-06 22:06 
AnswerRe: Voice Chat Pin
Mostafa Siraj19-Sep-06 12:16
Mostafa Siraj19-Sep-06 12:16 
GeneralRe: Voice Chat Pin
AB777122-Sep-06 20:25
AB777122-Sep-06 20:25 
QuestionHow to call unmanaged Dll in C# Pin
phijophlip18-Sep-06 22:06
phijophlip18-Sep-06 22:06 
AnswerRe: How to call unmanaged Dll in C# Pin
Christian Graus18-Sep-06 23:49
protectorChristian Graus18-Sep-06 23:49 
AnswerRe: How to call unmanaged Dll in C# Pin
CooperWu19-Sep-06 0:13
CooperWu19-Sep-06 0:13 
Questionhow to filter in datagrid Pin
faladrim18-Sep-06 21:51
faladrim18-Sep-06 21:51 
AnswerRe: how to filter in datagrid Pin
Robert Rohde18-Sep-06 22:16
Robert Rohde18-Sep-06 22:16 
GeneralRe: how to filter in datagrid Pin
faladrim18-Sep-06 22:29
faladrim18-Sep-06 22:29 
GeneralRe: how to filter in datagrid Pin
Robert Rohde19-Sep-06 19:10
Robert Rohde19-Sep-06 19:10 
GeneralRe: how to filter in datagrid Pin
faladrim19-Sep-06 20:47
faladrim19-Sep-06 20:47 
QuestionHow to stop windows service in c# by coding Pin
Rajesh_K_Sharma18-Sep-06 21:46
Rajesh_K_Sharma18-Sep-06 21:46 
AnswerRe: How to stop windows service in c# by coding Pin
AB777118-Sep-06 22:31
AB777118-Sep-06 22:31 
AnswerRe: How to stop windows service in c# by coding Pin
S. Senthil Kumar19-Sep-06 2:44
S. Senthil Kumar19-Sep-06 2:44 
Questionusing ScrollControlIntoView( ) method Pin
kkadir18-Sep-06 21:37
kkadir18-Sep-06 21:37 
Questionmulti login pages Pin
Tamimi - Code18-Sep-06 21:35
Tamimi - Code18-Sep-06 21:35 
Questionwhy my code not working Pin
kalaveer18-Sep-06 20:32
kalaveer18-Sep-06 20:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.