Hi! Urgent pls

  • Thread starter Thread starter sinu reddy via .NET 247
  • Start date Start date
S

sinu reddy via .NET 247

hi,
I have written a smart device application in .net. thisapplicaiton accesses a desktop running server application to geta byte stream. I want to save these contents onto the client(PPC client). Im using a file dialog box to save this into thtespecified location. Bu tthe file dialog never appeared. Im usinga default location too (\windows\temp). but somehow the file isnot getting saved. I can see the contents...but nothing is savedas such.
The same problem Iam facing with an asp .net applicaiotion thePDA is not able to show the savefile dialog where as a desktopversion works abolutely fine.
Im facing the problem of displaying the dialog box with save oreven saving a file to the default directory.
Yet another problem Im facing is I cannot detect the proxysettings to save in GlobalProxySelect usingWebProxy.GetDefaultProxy.
can u please help me out with this as it's very urgent.
Thank you.
Sinu.
From: sinu reddy
 
Hi there,

Using a savefiledialog to save a file.

Here is some code that may help you with saving the file. If this doesn't
help, please post some of your code so we can understand the problem better.

if (saveFileDialog1.ShowDialog() == DialogResult.OK) {
string filePath = saveFileDialog1.FileName;
System.IO.FileStream fs = new
System.IO.FileStream(filePath,System.IO.FileMode.Create,
System.IO.FileAccess.Write);
System.IO.StreamWriter sw = new System.IO.StreamWriter(fs);

sw.WriteLine("Hello");

sw.Flush();
fs.Close();

}



Tom Krueger


hi,
I have written a smart device application in .net. this applicaiton accesses
a desktop running server application to get a byte stream. I want to save
these contents onto the client (PPC client). Im using a file dialog box to
save this into thte specified location. Bu tthe file dialog never appeared.
Im using a default location too (\windows\temp). but somehow the file is
not getting saved. I can see the contents...but nothing is saved as such.
The same problem Iam facing with an asp .net applicaiotion the PDA is not
able to show the savefile dialog where as a desktop version works abolutely
fine.
Im facing the problem of displaying the dialog box with save or even saving
a file to the default directory.
Yet another problem Im facing is I cannot detect the proxy settings to save
in GlobalProxySelect using WebProxy.GetDefaultProxy.
can u please help me out with this as it's very urgent.
Thank you.
Sinu.
From: sinu reddy
 
Back
Top