C# Automating Printing from Word

Copper Contributor

I am exploring the use of C# to automate a printing process we currently have.

 

It looks like the PrintOut() method might be able to work for me, but I had a few questions.

sticksandtraingles_0-1710948351179.png

Question 1: Can I specify the printer easily in c sharp? I found this stackoverflow question, and it looks a bit complicated to specify a specific printer, but this was from 2012, maybe it is easier now?

 

sticksandtraingles_1-1710948412877.png

Question 2: 

Can I specify the save as type dropdown below? I need to specify .png. This screen appears after hitting print on the screen shown in question 1. Reviewing the parameters for PrintOut(), I do not see a way to specify this.

sticksandtraingles_2-1710948506927.png

 

Thanks!

 

 

0 Replies