Click here to Skip to main content
15,902,112 members
Home / Discussions / C#
   

C#

 
GeneralRe: Editing and Printing an word document Pin
martin_hughes15-Jan-08 4:12
martin_hughes15-Jan-08 4:12 
GeneralRe: Editing and Printing an word document Pin
Matjaz-xyz15-Jan-08 4:42
Matjaz-xyz15-Jan-08 4:42 
QuestionMonthCalendar Pin
Scotty15-Jan-08 3:14
Scotty15-Jan-08 3:14 
GeneralRe: MonthCalendar Pin
Pete O'Hanlon15-Jan-08 3:43
mvePete O'Hanlon15-Jan-08 3:43 
GeneralRe: MonthCalendar Pin
Scotty15-Jan-08 3:58
Scotty15-Jan-08 3:58 
Generaldownloading a file from an url to the server Pin
I Never Look Behind15-Jan-08 3:00
I Never Look Behind15-Jan-08 3:00 
GeneralRe: downloading a file from an url to the server Pin
Not Active15-Jan-08 3:15
mentorNot Active15-Jan-08 3:15 
GeneralCan't find XML file Error Pin
NewToAspDotNet15-Jan-08 1:22
NewToAspDotNet15-Jan-08 1:22 
Hi guys,
this is the situation:
-i use a OpenFileDialog to get .doc files
-the file wil be saved into sql server table
-with a another button i can load that file from sql and open it with MS Word.
-the file wil also be saved in a directory on the disk. where to save? the path wil be read from config.xml that is located on the 'release' folder of the application(by loading of the form).

the problem:
- when u load the form for the first time, it works fine.
- bud the second time i dont know why bud the app trys to load the config.xml from the folder where i got my .doc file.

for example suppose that the last time i got a .doc from My Documents folder then i get the error:
Can't find C:\Documents and Settings\Me\My Documents\Config.xml
if from C:\ :
Can't find C:\Config.xml



bud the config.xml is located on release folder and this is the code to load the xml:

XmlDocument configfile = new XmlDocument();<br />
configfile.Load("Config.xml");


anyone a idea how to solve this?
GeneralRe: Can't find XML file Error Pin
Luc Pattyn15-Jan-08 1:32
sitebuilderLuc Pattyn15-Jan-08 1:32 
GeneralRe: Can't find XML file Error Pin
NewToAspDotNet15-Jan-08 2:36
NewToAspDotNet15-Jan-08 2:36 
GeneralRe: Can't find XML file Error Pin
Luc Pattyn15-Jan-08 2:55
sitebuilderLuc Pattyn15-Jan-08 2:55 
GeneralRe: Can't find XML file Error Pin
NewToAspDotNet15-Jan-08 3:13
NewToAspDotNet15-Jan-08 3:13 
GeneralRe: Can't find XML file Error Pin
Pete O'Hanlon15-Jan-08 3:47
mvePete O'Hanlon15-Jan-08 3:47 
GeneralRe: Can't find XML file Error Pin
Luc Pattyn15-Jan-08 3:56
sitebuilderLuc Pattyn15-Jan-08 3:56 
GeneralRe: Can't find XML file Error Pin
Pete O'Hanlon15-Jan-08 4:28
mvePete O'Hanlon15-Jan-08 4:28 
GeneralRe: Can't find XML file Error Pin
benjymous15-Jan-08 1:36
benjymous15-Jan-08 1:36 
General.Net Remoting Pin
El'Cachubrey15-Jan-08 0:51
El'Cachubrey15-Jan-08 0:51 
GeneralRe: .Net Remoting Pin
led mike15-Jan-08 4:42
led mike15-Jan-08 4:42 
GeneralSending (and then handling) messages to a server Pin
Completenutter215-Jan-08 0:00
Completenutter215-Jan-08 0:00 
GeneralZooming in chart... Pin
amoldix14-Jan-08 23:34
amoldix14-Jan-08 23:34 
GeneralRe: Zooming in chart... Pin
S. Senthil Kumar15-Jan-08 7:42
S. Senthil Kumar15-Jan-08 7:42 
Questionchange video border color when using WMP in C# Pin
codefreaklcs14-Jan-08 23:30
codefreaklcs14-Jan-08 23:30 
QuestionCount bitpattern occurences in textstrings Pin
invictus314-Jan-08 21:40
invictus314-Jan-08 21:40 
GeneralRe: Count bitpattern occurences in textstrings Pin
J4amieC14-Jan-08 22:33
J4amieC14-Jan-08 22:33 
GeneralRe: Count bitpattern occurences in textstrings Pin
invictus314-Jan-08 23:00
invictus314-Jan-08 23:00 

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.