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

Need Your Help

Android Set multiple repeat alarms

android alarmmanager android-pendingintent android-alarms

I want to set 3 different alarms repeat everyday.(like 9:00am,1:00pm,6:00pm)

Casting BitmapData.Scan0.ToPointer to long

c# .net image

I’m having some troubles understanding what exactly is happening with Scan0.ToPointer when I cast it to a different type. I have the following code to write data to a 48bpp image: