Change default printer from CAL

A while ago Waldo has posted a way to print any document from CAL. Here he showed us how easy it is to print any document with any extension by simple using .NET.
Recently I used this to print merged PDF’s from CAL, but I ran into an issue.

I want to print this PDF’s on a certain printer.
Some products like Adobe cleams to support this by passing some parameters like:

AcroRd32.exe /t path “printername” “drivername” “portname”

But then you are related to specific software and what with the other extensions.
Do you realy want to create separate statements for every extension.
I don’t think so.

Thereby I search for a better way, and here it is.
Why don’t use .NET again to solve this issue.
Instead of passing the printer as a parameter, I will switch my default printer from CAL.

Continue reading