How are you persisting PrinterSettings??

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there an easy of persisting printer settings???

Most of the PrinterSettings and related objects are not marked a
serializable so they can not be serialized with an application.

So far what I am doing is wrapping all the properties for these objects in
Objects that are Serializable so I can persist the new objects with an
application file and then I recreate the PrinterSettings and Related objects
from the new objects when printing is requested.

Is there an easier way to do this??
 
Hello Mike,
I have ran into this as well. I think it is better to implement your own serialization, it would be more effecient . Depending on what will need to read the settings, you could chose to use binary ser. for better performance over xml. As far as an easier way, no I don't think so.

Best of luck!

Your C# ally ,
RBischoff


MP> Is there an easy of persisting printer settings???
MP>
MP> Most of the PrinterSettings and related objects are not marked a
MP> serializable so they can not be serialized with an application.
MP>
MP> So far what I am doing is wrapping all the properties for these
MP> objects in Objects that are Serializable so I can persist the new
MP> objects with an application file and then I recreate the
MP> PrinterSettings and Related objects from the new objects when
MP> printing is requested.
MP>
MP> Is there an easier way to do this??
MP>
 
Thanks for the Reply....

I have pretty much finished it now, and I am using binary Serialization to
save every thing. Just seemed like a lot of work and I figured there should
have been an easier way.
 
Back
Top