<p>I'm trying to switch on and off the Rotate 180 degree setting for an HP Laserjet printer (4200/ 4350) using a duplexer unit.</p>

<p>The Business has a requirement to "print on both sides", for maximum control I'd like to be able to manipulate at print time (through print macros) whether or not duplex printing is enabled for each of the different types of a document the business works with.</p>

<p>I can control the tray assignments, print order and switch duplexing on and off.  However, cannot figure out how to control the rotation option (switch this on and off).</p>

<p>Any solutions available other than a blanket - enable this option on the print server for all documents/ users?</p>

Here you go:
```
```
declare @string varchar(100)
select @string = 'sfdasadhfasjfdlsajflsadsadsdadsa'
SELECT LEN(@string) - LEN(REPLACE(@string, 'd', '')) AS D_Count
```
```