TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
satyamkumar seth
NA
13
0
Upload Word Documett should Display in Literal or Label
Dec 17 2008 8:02 AM
Hello Guys,
when i upload any word/excel document in the folder, next time i want that uploaded word/excel document should display in either Label or Literal ....
i have added Reference Microsoft.word 11.0 object library..
this is the code i have used,
Microsoft.Office.Interop.Word.ApplicationClass wordApp = new Microsoft.Office.Interop.Word.ApplicationClass();
string filePath = inputbox.Value;
object file = FilePath;
object nullobj = System.Reflection.Missing.Value;
Microsoft.Office.Interop.Word.Document doc = wordApp.Documents.Open(ref file,
ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj,
ref nullobj, ref nullobj, ref nullobj,ref nullobj, ref nullobj, ref nullobj);
Microsoft.Office.Interop.Word.Document doc1 = wordApp.ActiveDocument;
string m_Content = doc1.Content.Text;
m_Textbox.Text = m_Content;
doc.Close(ref nullobj, ref nullobj, ref nullobj);
but i am not getting the success , its giving error like "No overload method 'open' takes 12 argument"
please tell me how can i solve this problem.
i want to show uploaded word file in Literal or Label
Reply
Answers (
1
)
to block http port..
how to read a row where column value is null;