Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2008

Tip: Looking for answers? Try searching our database.

printing issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
satish - 12 Mar 2008 12:58 GMT
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)
Jonathan West - 13 Mar 2008 12:12 GMT
>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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.