How can I Save Report.Document.Printer settings?
I want store the Report.Document.Printer settings in a database, how can I Save it? Is there any way like the Report.SaveLayout() method?
There is no built in save method like SaveLayout, but you could save these settings yourself into text or XML (for example) to save in your database and manually reset them later.
You can see an example of setting those properties in the Printer class documentation page. For your needs, you would just retrieve those settings from your database (the text/xml) instead of hard coding them as is done in the example.
try PrintDocument.PrinterSettings
精彩评论