Click here to Skip to main content
15,915,680 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: session variables vanish Pin
klawipo25-Jan-07 9:12
klawipo25-Jan-07 9:12 
GeneralRe: session variables vanish Pin
ednrgc26-Jan-07 2:33
ednrgc26-Jan-07 2:33 
AnswerRe: session variables vanish Pin
Guffa25-Jan-07 9:42
Guffa25-Jan-07 9:42 
GeneralRe: session variables vanish Pin
klawipo25-Jan-07 22:41
klawipo25-Jan-07 22:41 
QuestionListbox not updating Pin
Quecumber25625-Jan-07 5:23
Quecumber25625-Jan-07 5:23 
AnswerRe: Listbox not updating Pin
nour12325-Jan-07 11:08
nour12325-Jan-07 11:08 
AnswerRe: Listbox not updating Pin
ednrgc26-Jan-07 2:46
ednrgc26-Jan-07 2:46 
QuestionFile name losing path. Pin
dspyank25-Jan-07 5:08
dspyank25-Jan-07 5:08 
Hey all,

I am having a major problem trying to pull up a word file that has been selected by the user using an HTML file input box (open file dialog box).

If I run it from my computer, the whole path is there when it tries to find the file selected.

If I run it on the webserver, it loses the path of the document.

Here is my code:

protected void openWord()
{

string pathname = File1.Value.ToString(); //HTML File Input Control

//set path of word doc you are opening
object fileName = pathname;

object readOnly = false;

object isVisible = true;

object missing = System.Reflection.Missing.Value;

//make word document appear
WordObj.Visible = true;

//open specified word document
Microsoft.Office.Interop.Word.Document wordDoc = WordObj.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, ref missing, ref missing, ref missing, ref missing);

When I run this on my machine, its fine, the webserver has word installed on it.

Please help!

Thank you in advance!

Dave

AnswerRe: File name losing path. Pin
dspyank25-Jan-07 5:15
dspyank25-Jan-07 5:15 
Questionanyone know that how to create tabs like java with ASP.NET 1.1? Pin
good625-Jan-07 3:56
good625-Jan-07 3:56 
AnswerRe: anyone know that how to create tabs like java with ASP.NET 1.1? Pin
Amit Kumar G25-Jan-07 13:36
Amit Kumar G25-Jan-07 13:36 
AnswerRe: anyone know that how to create tabs like java with ASP.NET 1.1? Pin
Artem Kustikov25-Jan-07 21:16
Artem Kustikov25-Jan-07 21:16 
QuestionASP.NET and AJAX Pin
Jens Meyer25-Jan-07 3:33
Jens Meyer25-Jan-07 3:33 
QuestionHow to create an CreateActCtx Pin
rockyl25-Jan-07 3:33
rockyl25-Jan-07 3:33 
Questionhow to get the duration of an mp3 file Pin
Sivaprasad C25-Jan-07 2:58
Sivaprasad C25-Jan-07 2:58 
QuestionInvalidCastException is thrown in my ASP.Net code Pin
rockyl25-Jan-07 2:20
rockyl25-Jan-07 2:20 
Questiona bout Pin
ARAVINDIKA25-Jan-07 1:57
ARAVINDIKA25-Jan-07 1:57 
AnswerRe: a bout Pin
ednrgc25-Jan-07 6:41
ednrgc25-Jan-07 6:41 
QuestionGet IFRAME url Pin
sdsdsds@hotmail.com25-Jan-07 1:42
sdsdsds@hotmail.com25-Jan-07 1:42 
AnswerRe: Get IFRAME url Pin
Paddy Boyd25-Jan-07 3:01
Paddy Boyd25-Jan-07 3:01 
GeneralRe: Get IFRAME url Pin
sdsdsds@hotmail.com25-Jan-07 3:35
sdsdsds@hotmail.com25-Jan-07 3:35 
QuestionWindows 2003 server Session TimeOut Pin
jzb25-Jan-07 1:21
jzb25-Jan-07 1:21 
QuestionHow to add/edit datagrid values by using combo box and text box controls Pin
Member 156021025-Jan-07 0:56
Member 156021025-Jan-07 0:56 
AnswerRe: How to add/edit datagrid values by using combo box and text box controls Pin
Paddy Boyd25-Jan-07 3:03
Paddy Boyd25-Jan-07 3:03 
AnswerRe: How to add/edit datagrid values by using combo box and text box controls Pin
linpihong25-Jan-07 20:16
linpihong25-Jan-07 20:16 

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.