Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / July 2004

Tip: Looking for answers? Try searching our database.

how to Open an Office Document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hazira B - 20 Jul 2004 05:05 GMT
Can anyone tell me how to Open an Office Document in Visual Basic .NET

Thanks in advance...

Signature

Yours,
Hazira B

Murat KARATUTLU - 20 Jul 2004 12:39 GMT
the question might be "Which kind of Office Document?"
let me just write a few sentences abou the MS-Word documents...

You should reference the Microsoft Word TypeLib to your project. (at this
point you may wish to look for the tlbimp.exe)
If you are using Visual Studio, there is nothing to worry about, anyway,
referencing the typelib to your project is not the solution itself...

you should then create the application then open the document on this
reference,
I can not remember the exact function parameters now but it should be
something like:

Dim oApp As New Word.Application
Dim oDoc as Word.Document

oDoc = oApp.Documents.Open([FILE_PATH], ....... )
oApp.Visible = True ///just to c the app working
.
.
.
.

Murat

Check for the Open method's parameters

> Can anyone tell me how to Open an Office Document in Visual Basic .NET
>
> Thanks in advance...

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.