printing issue

S

satish

I had a requirement of printing MS Word document for the application, and the
user should be given an option to change printer settings for the document
that he/she wants to print, so that user can change page source, duplex
property and color property of the printer.
i found code for duplex in the following link
http://www.codeproject.com/KB/dotnet/NET_Printer_Library.aspx
it is working for duplex but if i try to implement it for color printing on
a shared printer it is not affecting.
can anyone provide code for this in C#.Net(Windows Application)
 
J

Jonathan West

satish said:
I had a requirement of printing MS Word document for the application, and
the
user should be given an option to change printer settings for the document
that he/she wants to print, so that user can change page source, duplex
property and color property of the printer.
i found code for duplex in the following link
http://www.codeproject.com/KB/dotnet/NET_Printer_Library.aspx
it is working for duplex but if i try to implement it for color printing
on
a shared printer it is not affecting.
can anyone provide code for this in C#.Net(Windows Application)

In VBA, instead of ActiveDocument.PrintOut, you would use the following line
of code

Dialogs(wdDialogFilePrint).Show

This displays the same print dialog that appears when you go to File Print,
and allows the user to set anything about the print setup that he wants
before printing.

I don't know what the equivalent C# code is, but hopefully you will be able
to translate
 
S

satish

hi,
Will there be chance of changing default printer settings of shared
printer.If so what will be the code because in the link i mentioned below
doesnt not work for shared printer.
 
J

Jonathan West

satish said:
hi,
Will there be chance of changing default printer settings of shared
printer.If so what will be the code because in the link i mentioned below
doesnt not work for shared printer.

Word's Print dialog works for all printers that Word can use, share or
local.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top