Click here to Skip to main content
16,022,417 members

Comments by Arun Ashok (Top 12 by date)

Arun Ashok 21-Jun-15 6:26am View    
Hai johannesnestler,
I got your point.
"Windows CE 5/6 it wasn't possible to do any office-automation on CE Clients without expensive 3rd party components "

So now i am trying to read from a text file. but the error is still same. Please refer the below points.

1. i am building and deployed the solution to the emulator, not on actual device. 2. while i tried to access the file it gives me the error-
The file was copied to my debug folder and the same path is specified inside in the code.
path i given inside the code is "System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\Items.txt"
what will be the problem. is it because i am running from an emulator. if it so then what will be the path. I have the file copied to my debug folder and the error message shows "Could not find file '\Program Files\SmartSys\Items.txt'."

3. i am using a sql CE database and the path i given is some what same. please see the code below. it doesnt have any problem for accessing it.
conn.ConnectionString = "Data Source=" + System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\MyData.sdf;Persist Security Info=False;";

conn.Open();
SqlCeCommand command = conn.CreateCommand();
Arun Ashok 1-Jun-15 7:29am View    
Thanks for the reply. But i debugged my program and still the same.
Arun Ashok 4-Feb-14 2:34am View    
Thank you guys for all the help you provided..... Using your directions and some code from my part has done the job.... All comments and codes appreciated.
Arun Ashok 4-Feb-14 2:33am View    
Deleted
Thank you guys for all the help you provided..... Using your directions and some code from my part has done the job.... All comments and codes appreciated.
Arun Ashok 4-Feb-14 2:33am View    
Thank you guys for all the help you provided..... Using your directions and some code from my part has done the job.... All comments and codes appreciated.