Link to home
Start Free TrialLog in
Avatar of Cmitch
CmitchFlag for Australia

asked on

Printing from Visual Basic using the Microsoft.Office.Interop.Word.Application. Colour required

I have an application which prints a MS word document, however by default the selected printers print in 'Black and White' otherwise the user needs to select the colour option via the properties option.

Using the 'PrintDialog' option the user can view and select the properties required, however how can this be applied to MS word to print the document in colour?
Dim myWord As New Microsoft.Office.Interop.Word.Application
Dim myDoc As Microsoft.Office.Interop.Word.Document
Dim mySettings As New PrintDialog

If (mySettings.ShowDialog = Windows.Forms.DialogResult.OK) Then
   myWord.ActivePrinter = mySettings.PrinterSettings.PrinterName
   myDoc =    myWord.Documents.Open(strFilenames(intEmail).ToString)                                            myWord.ActiveDocument.PrintOut(Copies:=mySettings.PrinterSettings.Copies)
End if

Open in new window

Avatar of lwebber
lwebber

You should be able to change the printer's default settings from the Control Panel. Exit Word. Open the printer's properties and change the selections to print in color. Start Word and look at the printer's settings. They should reflect what you defined as the defaults in the Control Panel.
Avatar of Cmitch

ASKER

Due to enforced policies their IT department has put in place to reduce costs the system won't save this change.  However users can print in color via MS Word if the select print and then make the settings change via the printer properties option.

How can do the via VB?
ASKER CERTIFIED SOLUTION
Avatar of omegaomega
omegaomega
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial