Click here to Skip to main content
15,915,786 members
Home / Discussions / C#
   

C#

 
GeneralRe: Icons Disapear from taskebar Pin
Cracked-Down26-Mar-09 3:51
Cracked-Down26-Mar-09 3:51 
GeneralRe: Icons Disapear from taskebar Pin
Henry Minute26-Mar-09 6:31
Henry Minute26-Mar-09 6:31 
AnswerRe: Icons Disapear from taskebar Pin
Eddy Vluggen26-Mar-09 9:21
professionalEddy Vluggen26-Mar-09 9:21 
GeneralRe: Icons Disapear from taskebar Pin
Cracked-Down26-Mar-09 18:00
Cracked-Down26-Mar-09 18:00 
QuestionCsharp with Oracle 10g Passing Arrays as an Output Parameter to the SP: Need Help URGENT Pin
srinivas_0626-Mar-09 2:52
srinivas_0626-Mar-09 2:52 
Questionsend the xml through socket Pin
lnmca26-Mar-09 2:14
lnmca26-Mar-09 2:14 
AnswerRe: send the xml through socket Pin
stancrm26-Mar-09 2:32
stancrm26-Mar-09 2:32 
QuestionHow to display pdf & word file Pin
Sajjad Leo26-Mar-09 1:48
Sajjad Leo26-Mar-09 1:48 
I am trying to open MS word file or PDF fie in my project tel me what should i do for this.

I have searched on net but still i am facing problem in this code which is,


if (this.openFileDialog1.ShowDialog() == DialogResult.Yes)
{
// set the file name from the open file dialog
object fileName = openFileDialog1.FileName;
object readOnly = false;
object isVisible = true;
// Here is the way to handle parameters you don't care about in .NET
object missing = System.Reflection.Missing.Value;
// Make word visible, so you can see what's happening
WordApp.Visible = true;
// Open the document that was chosen by the dialog

Word.Document aDoc = WordApp.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);

// Activate the document so it shows up in front
aDoc.Activate();
// Add the copyright text and a line break
WordApp.Selection.TypeText("wFile.doc");
WordApp.Selection.TypeParagraph();
}

In Bold code their is error this is not working.

WHAT SHOULD I DO ?
AnswerRe: How to display pdf & word file Pin
Eddy Vluggen26-Mar-09 2:06
professionalEddy Vluggen26-Mar-09 2:06 
GeneralRe: How to display pdf & word file Pin
Sajjad Leo26-Mar-09 2:13
Sajjad Leo26-Mar-09 2:13 
GeneralRe: How to display pdf & word file Pin
musefan26-Mar-09 2:21
musefan26-Mar-09 2:21 
GeneralRe: How to display pdf & word file Pin
Sajjad Leo26-Mar-09 2:24
Sajjad Leo26-Mar-09 2:24 
GeneralRe: How to display pdf & word file Pin
Fayu26-Mar-09 2:49
Fayu26-Mar-09 2:49 
QuestionDate Time Pin
Zeyad Jalil26-Mar-09 1:41
professionalZeyad Jalil26-Mar-09 1:41 
AnswerRe: Date Time Pin
SeMartens26-Mar-09 1:47
SeMartens26-Mar-09 1:47 
GeneralRe: Date Time Pin
Zeyad Jalil26-Mar-09 2:05
professionalZeyad Jalil26-Mar-09 2:05 
GeneralRe: Date Time Pin
Ashfield26-Mar-09 2:12
Ashfield26-Mar-09 2:12 
GeneralRe: Date Time Pin
Deresen26-Mar-09 2:13
Deresen26-Mar-09 2:13 
GeneralRe: Date Time Pin
musefan26-Mar-09 2:17
musefan26-Mar-09 2:17 
GeneralRe: Date Time Pin
CPallini26-Mar-09 3:23
mveCPallini26-Mar-09 3:23 
QuestionNew project... which architecture? Pin
Mkyassuo26-Mar-09 1:25
Mkyassuo26-Mar-09 1:25 
AnswerRe: New project... which architecture? Pin
SeMartens26-Mar-09 1:38
SeMartens26-Mar-09 1:38 
AnswerRe: New project... which architecture? Pin
Deresen26-Mar-09 1:39
Deresen26-Mar-09 1:39 
QuestionCreate dropdown in dynamic table Pin
asipo26-Mar-09 1:25
asipo26-Mar-09 1:25 
QuestionAutoSize property in textbox Pin
behzadcp26-Mar-09 1:22
professionalbehzadcp26-Mar-09 1:22 

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.