I use PrintDialog and UltraPrintDocument for load and save setting printer to SQL.
The problem I have, Is not save my DUPLEX properties ? on SaveAsXML because when I'm load XML the Duplex property is on default setting not what the users selected.
Is this normal ?
How I can save all information on UPD.PrinterSetting ?
Francois.
HI Mike,
I change my method.
I use System.Xml.Serialization.XmlSerializer class
And now is ok.
Hi Mike,
Is same.
I think I have the wrong method between PrintDialog and UltraPrintDocument
my code is
UPD.PrinterSettings = PD.PrinterSettings
UPD.SaveAsXml(
All information on UPD.PrinterSetting was good, but not on xlm file.
Francois
Hi,
Does it work if you save/load to a file? If so, then my guess is that something is happening to the XML in the process of going to or from the SQL field. You might be modifying the encoding along the way.