>I had a requirement of printing MS Word document for the application, and
>the
[quoted text clipped - 7 lines]
> 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

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
satish - 15 Mar 2008 08:46 GMT
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.
> >I had a requirement of printing MS Word document for the application, and
> >the
[quoted text clipped - 19 lines]
> I don't know what the equivalent C# code is, but hopefully you will be able
> to translate
Jonathan West - 19 Mar 2008 15:46 GMT
> 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.

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup