Fog Creek Software
Discussion Board

Welcome! and rules

Joel on Software

Changing a print driver setting in .NET?


Using VB.NET or C#, how can I programmatically change the current page length setting in a print driver?

I need to change the actual setting in the printer preferences, as the typical .NET PrinterSettings and DefaultPageSettings options will not work for this application. I assume that I’ll need to go through the Windows API or use the DevMode structure, but there is little to no documentation that I could find about this as it is done in .NET.

Any and all tips will be much appreciated.



Tuesday, March 25, 2003

*  Recent Topics

*  Fog Creek Home