Click here to Skip to main content
15,893,486 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: ComboBox Pin
Christian Graus13-Dec-05 15:01
protectorChristian Graus13-Dec-05 15:01 
QuestionRegistry search Pin
Yevgeny Efter13-Dec-05 8:57
Yevgeny Efter13-Dec-05 8:57 
AnswerRe: Registry search Pin
Ingo14-Dec-05 1:19
Ingo14-Dec-05 1:19 
GeneralRe: Registry search Pin
HakunaMatada16-Dec-05 0:14
HakunaMatada16-Dec-05 0:14 
GeneralRe: Registry search Pin
Ingo16-Dec-05 0:22
Ingo16-Dec-05 0:22 
QuestionMSH For Building Projects Pin
Joshua Nussbaum13-Dec-05 7:21
Joshua Nussbaum13-Dec-05 7:21 
AnswerRe: MSH For Building Projects Pin
Jared Parsons20-Dec-05 5:48
Jared Parsons20-Dec-05 5:48 
QuestionProblem saving XML file through XmlDocument Pin
Ritesh Mehrotra13-Dec-05 1:41
Ritesh Mehrotra13-Dec-05 1:41 
Can anybody please help me in resolving this Issue?

I am trying to open and save a file saved on my local computer through XmlDocument in a Smart Client Application which accepts the Xml data from a web service in the form of a string, which I update to a file in my local machine.

Following is the code..

RSMService lRSMService = new RSMService();
InputOutput IOComplianceGroup = new InputOutput();

IOComplianceGroup = lRSMService.GetSpecificData("procGetSanitizerLog",IO.propertyDataset.Tables[0].Rows[0]["StoreId"].ToString(),false);

if (IOComplianceGroup.propertyResult == Result.Success)
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(IOComplianceGroup.propertyXmlDocument.OuterXml);
System.IO.FileInfo FI = new System.IO.FileInfo(path1);
if(FI.Exists == false)
{
FI.Create();
FI.Open(System.IO.FileMode.OpenOrCreate).Close();
}

FI = null;

try
{

xmlDoc.Save(path1);

xmlDoc = null;

}
catch (Exception ex)
{

MessageBox.Show(ex.Message.ToString());
}


}


Thanks in advance

Regards,
Ritesh
QuestionMD5 checksum test for COM-DLLs Pin
Ingo13-Dec-05 1:04
Ingo13-Dec-05 1:04 
AnswerRe: MD5 checksum test for COM-DLLs Pin
Phillip M. Hoff22-Dec-05 18:46
Phillip M. Hoff22-Dec-05 18:46 
GeneralRe: MD5 checksum test for COM-DLLs Pin
Ingo28-Dec-05 22:19
Ingo28-Dec-05 22:19 
QuestionVB.Net Excel Pin
fasttaxi12-Dec-05 23:32
fasttaxi12-Dec-05 23:32 
AnswerRe: VB.Net Excel Pin
Brent Lamborn15-Dec-05 4:47
Brent Lamborn15-Dec-05 4:47 
QuestionAdding a button to a form Pin
patrick king11-Dec-05 11:22
patrick king11-Dec-05 11:22 
AnswerRe: Adding a button to a form Pin
Christian Graus11-Dec-05 12:06
protectorChristian Graus11-Dec-05 12:06 
QuestionRe: Adding a button to a form Pin
patrick king12-Dec-05 2:50
patrick king12-Dec-05 2:50 
AnswerRe: Adding a button to a form Pin
Ray Cassick12-Dec-05 10:21
Ray Cassick12-Dec-05 10:21 
GeneralRe: Adding a button to a form Pin
Ray Cassick12-Dec-05 10:23
Ray Cassick12-Dec-05 10:23 
QuestionShowing an image Pin
Yevgeny Efter11-Dec-05 6:49
Yevgeny Efter11-Dec-05 6:49 
AnswerRe: Showing an image Pin
Dave Kreskowiak11-Dec-05 13:46
mveDave Kreskowiak11-Dec-05 13:46 
AnswerRe: Showing an image Pin
Saksida Bojan11-Dec-05 20:50
Saksida Bojan11-Dec-05 20:50 
QuestionGetting UserControls to show up in the Toolbox? Pin
dxben10-Dec-05 22:02
dxben10-Dec-05 22:02 
AnswerRe: Getting UserControls to show up in the Toolbox? Pin
Yuvi Panda10-Dec-05 23:29
Yuvi Panda10-Dec-05 23:29 
QuestionSize of a Folder Pin
Yuvi Panda10-Dec-05 21:50
Yuvi Panda10-Dec-05 21:50 
AnswerRe: Size of a Folder Pin
rob tillaart10-Dec-05 23:20
rob tillaart10-Dec-05 23:20 

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.