Showing results for 
Search instead for 
Do you mean 
Reply
New Member
Posts: 2
Registered: ‎06-11-2015

Changing Print Preferences in code (c# )

Hi,

 

I have been fruitlessly searching for a couple of weeks on a way to change the printer settings thourgh C# code for my colorqube 9301 which is using the Global Print Driver. I was hoping there was some sort of API i could call but I can't find any on the website for the driver.The driver is on a network.

I would like to change the Duplex drop down via code.

 

I can open the properties and select it manually but i've a couple 1000 docs to print(some duplex some simplex) and this isn't a realistic option.

 

Printing .doc's mainly. Normal Winword printing options does not allow me to Print Duplex short side.

 

Any help or guideance would be amazing.

 

Thanks,

Barry

Valued Advisor
Posts: 1,217
Registered: ‎07-23-2012

Re: Changing Print Preferences in code (c# )

[ Edited ]

Hi!

 

You could probably use PJL Comment commands for this? have a look HERE

Other than that you would need to add the printer twice and setting the driver up differently on both, having one for double sided print and the other for single sided.

 


--------------------------------------------
Please remember to select "Accept as Solution" for posts that helped you solve the issue.

New Member
Posts: 2
Registered: ‎06-11-2015

Re: Changing Print Preferences in code (c# )

I did have a look through this PDF before and it looks promising however when I am printing the document I do not have PS exposed.

I call Document.PrintOut(xx,xxx,xx,xx); and it spools the file for me.

Is there a way to pass these commands to the printer without a document?

Highlighted
Valued Advisor
Posts: 1,217
Registered: ‎07-23-2012

Re: Changing Print Preferences in code (c# )

Hi again!

 

No, I do not think it's possible, you could use two setups as proposed in my previous post?

Or you could probably script it, getting a popup window to choose the document to print, but I don't have enough knowledge on that.

 

Best Regards

Kimzi


--------------------------------------------
Please remember to select "Accept as Solution" for posts that helped you solve the issue.