I have tried using this SetDirectory[ DirectoryName[ ToFileName["FileName" /. NotebookInformation[SelectedNotebook[]]]]]
SetDirectory[ DirectoryName[ ToFileName["FileName" /. NotebookInformation[SelectedNotebook[]]]]]
and then used t = Import[ "FileName\\RegressionExample.xls"];
t = Import[ "FileName\\RegressionExample.xls"];
But what is the correct way?
In Player Pro you can use NotebookDirectory[EvaluationNotebook[]] With the Free CDF Player you cannot import anything from the filesystem by using Import. If you run a local webserver you can probably get data through FetchURL, or Import["http://localhost/mydata.xls"]
Need to import a .xls from the .cdf 's directory , must work anywhere