Group: microsoft.public.word.vba.general
From: =?Utf-8?B?c2F0aXNo?=
Date: Saturday, March 15, 2008 2:46 AM
Subject: Re: printing issue

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.

"Jonathan West" wrote:

>
> "satish" wrote in message
> news:762B6F5C-BECC-4FF9-AE93-906A2B65B947@microsoft.com...
> >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
>
>
> --
> Regards
> Jonathan West - Word MVP
> www.intelligentdocuments.co.uk
> Please reply to the newsgroup
>
>