Here is my situation:
- I am developing a C # add-on for a third-party program
- This program (Revit) uses its own printing methods and provides them through the API
- I am writing a printing utility that uses these methods to print in various places, including a PDF printer
- I use PDF995 as a printer and modify its .ini file to automate it.
- I basically call the print method in the API, which prints the active drawing to the specified printer.
My problem is that in PDF995, if you go to the print settings on Windows, the default is set to portrait. I need a landscape. These settings seem to override everything I installed in the Revit API, so I need to change my Windows settings.
I tried this code:
PrintDocument printDocument = new PrintDocument();
printDocument.PrinterSettings.PrinterName = "PDF995";
printDocument.DefaultPageSettings.Landscape = true;
API, . pdf995 ini, . , .
++ , , - , .
- ?