where should the client app write the xml file to?

G

Guest

Hello,

I have a winform app that end users in my company use for various operations
- mainly searching stuff. It is a VB2005 app. People enter parameters and
want to be able to recall what parameters they have entered. Right now I
have them enter their params into a dataTable/datagridview and I have the
dataTable write its contents to the local workstation in xml format when the
user is finished. But if a user is not at their workstation and login to the
app from another workstation on our intranet, they won't be able to read the
xml file on their workstation. Is there any (other) logical place for the
app to write the xml file to so it can be accessed from any workstation or
remotely? Is it possible to write the file (distinguished by UserID for
example) to our webserver? How to do this?

Thanks,
Rich
 
J

Jester98x

Rich said:
Hello,

I have a winform app that end users in my company use for various operations
- mainly searching stuff. It is a VB2005 app. People enter parameters and
want to be able to recall what parameters they have entered. Right now I
have them enter their params into a dataTable/datagridview and I have the
dataTable write its contents to the local workstation in xml format when the
user is finished. But if a user is not at their workstation and login to the
app from another workstation on our intranet, they won't be able to read the
xml file on their workstation. Is there any (other) logical place for the
app to write the xml file to so it can be accessed from any workstation or
remotely? Is it possible to write the file (distinguished by UserID for
example) to our webserver? How to do this?

Thanks,
Rich

Rich,

If users have roaming profiles you could place the xml file into their
application directory.

Saving to a server that everyone has access to is also an option. Is
there a shared drive that is shared amongst your users. If you are on
an Active Directory domain you could pick up the users logon name and
use this to create directories to store the xml file in.

Steve
 
G

Guest

HI Steve,

Thanks for your reply. I like the Active Directory Idea. I do believe we
are on an active directory domain (win2003 server, all workstations are xp
pro). I currently don't have much time in grade dealing with Active
Directory. Is it possible to use regular file operations to create a
directory in the Active Directory Domain? May I ask how I go about creating
these user directories and how I aim the xml file to it?

Imports System.IO.File
Imports System.xml
....
If Exists("ActiveDir\JoeS")
dataTbl.ReadXML("ActiveDir\JoeS\param.xml")
Else
Directory.CreateDirectory(ActiveDir\JoeS")
End If
....
dataTbl.WiriteXML("ActiveDir\JoeS")
....
Thanks,
Rich
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top