views:

136

answers:

2

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?

A: 

try PrintDocument.PrinterSettings

zabulus
+1  A: 

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.

scott