Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: character segmentation Pin
0x3c013-Mar-09 8:46
0x3c013-Mar-09 8:46 
Questiongetting http status code Pin
laziale13-Mar-09 6:49
laziale13-Mar-09 6:49 
AnswerRe: getting http status code Pin
led mike13-Mar-09 7:53
led mike13-Mar-09 7:53 
GeneralRe: getting http status code Pin
laziale13-Mar-09 8:07
laziale13-Mar-09 8:07 
Questiongeneric comboBox method Pin
ch0pper113-Mar-09 6:45
ch0pper113-Mar-09 6:45 
AnswerRe: generic comboBox method Pin
J$13-Mar-09 10:02
J$13-Mar-09 10:02 
GeneralRe: generic comboBox method Pin
ch0pper117-Mar-09 4:31
ch0pper117-Mar-09 4:31 
QuestionAutomatic Font serialization Pin
baranils13-Mar-09 6:18
baranils13-Mar-09 6:18 
Hello

I'm using a class of about 30 different parameters

I find very easy to use the little method below to automaticaly serialize and save those parameters

Unfortunately it does not work for Font
Is there some trick to use to wrap fonts the same way ?
Or do I have to serialize ALL elements one by one manualy ?

Tanks for any help


      // *******************************************************************************************
private void SaveTemplate()
{
  XmlSerializer xs;
  StreamWriter sw;
  string TemplateFile = "d:/tmp/xxx.xml";
  if (TemplateFile.Length <= 0)
  {
    return;
  }
  xs = new XmlSerializer(typeof(C_PrintSettings));
  using (sw = new StreamWriter(TemplateFile, false, Encoding.Default))
  {
    xs.Serialize(sw, Document.PrintSettings);
    sw.Close();
  }
}

AnswerRe: Automatic Font serialization Pin
led mike13-Mar-09 7:49
led mike13-Mar-09 7:49 
GeneralRe: Automatic Font serialization Pin
baranils13-Mar-09 8:34
baranils13-Mar-09 8:34 
GeneralRe: Automatic Font serialization Pin
led mike13-Mar-09 9:10
led mike13-Mar-09 9:10 
GeneralRe: Automatic Font serialization Pin
baranils13-Mar-09 11:13
baranils13-Mar-09 11:13 
GeneralRe: Automatic Font serialization Pin
led mike13-Mar-09 12:00
led mike13-Mar-09 12:00 
GeneralRe: Automatic Font serialization Pin
baranils13-Mar-09 14:13
baranils13-Mar-09 14:13 
QuestionSending Ctrl+letter to application using PostMesssage or SendMessage Pin
Fredrik Hagg13-Mar-09 5:10
Fredrik Hagg13-Mar-09 5:10 
GeneralRe: Sending Ctrl+letter to application using PostMesssage or SendMessage Pin
Luc Pattyn13-Mar-09 6:26
sitebuilderLuc Pattyn13-Mar-09 6:26 
QuestionAdvice about Open Database Connection Pin
soulidentities13-Mar-09 4:46
soulidentities13-Mar-09 4:46 
AnswerRe: Advice about Open Database Connection Pin
Nagy Vilmos13-Mar-09 4:59
professionalNagy Vilmos13-Mar-09 4:59 
GeneralRe: Advice about Open Database Connection Pin
soulidentities13-Mar-09 5:06
soulidentities13-Mar-09 5:06 
QuestionRe: Advice about Open Database Connection Pin
Nagy Vilmos13-Mar-09 5:12
professionalNagy Vilmos13-Mar-09 5:12 
AnswerRe: Advice about Open Database Connection Pin
soulidentities13-Mar-09 5:17
soulidentities13-Mar-09 5:17 
GeneralRe: Advice about Open Database Connection Pin
Dave Kreskowiak13-Mar-09 5:31
mveDave Kreskowiak13-Mar-09 5:31 
GeneralRe: Advice about Open Database Connection Pin
Nagy Vilmos13-Mar-09 10:30
professionalNagy Vilmos13-Mar-09 10:30 
GeneralRe: Advice about Open Database Connection Pin
Dave Kreskowiak13-Mar-09 12:23
mveDave Kreskowiak13-Mar-09 12:23 
AnswerRe: Advice about Open Database Connection Pin
Luc Pattyn13-Mar-09 6:28
sitebuilderLuc Pattyn13-Mar-09 6:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.