473,659 Members | 2,636 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help required in opening word document from ASP.NET(VB.NET) applic

Hi,

We are working on an ASP.NET (VB.NET) application and we have a problem
opening a word

document from our application. When we try to open the word document, we do
not get any

error message but the system hangs.

Our requirement is to open a word document on the server and write our
content to it and

save it on the server and then open the document through a link on the
client machine.

Basically, all we need is the syntax/code sample to open a word document
from our web

application (ASP.NET/VB.NET).

Thanks in advance
oursmp

Nov 21 '05 #1
1 2151
Ok friends and neighbors, I have a few questions. There could be a number of
reasons why that your application is hanging. The first question is:
1. Do you have any version of Microsoft word installed on your web server?
Now think carefully WHY I am asking if you have Microsoft word
installed on your webserver. The reason friends and neighbors is that the
ASP.net program is looking for an installed version of Microsoft word, not on
the client machine, but on the web server.

2. If you do have Microsoft word installed, is it the same version or lower
as the one referenced in the program? If it is a higher version than the
program there is another reason why it could be hanging.

May I suggest that you take your development version of your program and
test it using a different programmer's machine with no version of Microsoft
word on their machine. Then see what happens.

3. Have you tried installing Microsoft word on the web server to see if the
program works?

4. If you have tried all of these things write to this newsgroup again
stating what version of Microsoft word you are using and the references that
you have made in your code and even a code snippet of where you are
attempting to open your program, basically we need more information before we
can help you.
"ourspt" wrote:
Hi,

We are working on an ASP.NET (VB.NET) application and we have a problem
opening a word

document from our application. When we try to open the word document, we do
not get any

error message but the system hangs.

Our requirement is to open a word document on the server and write our
content to it and

save it on the server and then open the document through a link on the
client machine.

Basically, all we need is the syntax/code sample to open a word document
from our web

application (ASP.NET/VB.NET).

Thanks in advance
oursmp

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5516
by: Tom | last post by:
Hi, I have a vb.net program from wich i want to open a ms word-doc and insert an other document into it. But i want it to work on every version of word (minimum word 2000). can anyone help me out here?
1
353
by: ourspt | last post by:
Hi, We are working on an ASP.NET (VB.NET) application and we have a problem opening a word document from our application. When we try to open the word document, we do not get any error message but the system hangs.
0
1860
by: goof1972 | last post by:
Hello All, I have a VB.NET web application (1.1 framework) that creates a new Word document through interop.word.dll. I have a Windows Server 2003 with Office XP Professional installed. I've also installed the Office XP PIA. In my VB.NET application, I want to create a new Word document using the following code:
1
5677
by: JSL | last post by:
How to insert images into a Microsoft Word document using VB.NET?? my code: Public Function PictureReport() (it doesn't work!!!) On Error Resume Next Dim oDoc As Word.Document Dim range As Word.Range
0
1073
by: menelty | last post by:
Hi, I have been trying to create a word document using vb.net. I have several fields I wish to populate so I am using a MS Access back end to spit out the requested data for these fields as the fields are linked. I was spitting the data out into one large document using a loop but microsoft suggested using a template as I would have more control over the layout of the document as I wasn't happy about my layout regarding alignments etc.
0
7784
by: PracticalApps | last post by:
I looked to find a canned solution to create a Word document in my application and just couldn't find anything that just gets to the point. I would think, and I may be making too strong of an assumption here, that anyone looking for this kind of solution would just want a simple example that they can work from and expand upon. In my case, I just want to output a new Word document. I found that creating a simple wrapper class would make this...
2
4968
by: santuvssantu | last post by:
Hi Friends, I have tried inserting an excel file to a word document.But the following code is inserting the junk information. So can you please help me out? Dim m_WordApp As New Word.Application Dim m_WordDoc As Word.Document m_WordDoc = m_WordApp.Documents.Open(CObj("C:\Documents and Settings\santu\My Documents\New Microsoft Word Document.doc"), CObj(False), CObj(False), CObj(False))
0
5273
by: shivapadma | last post by:
i want to know how multiple tables are added to the MS word document using vb.net i wrote following code to insert one table in MS word document using vb.net 1.opened MS word document 2.inserted one 3x3 table Dim App As New Word.Application() Dim Doc As Word.Document = App.Documents.Add() Dim oTable1 As Word.Table Dim Range As Word.Range
0
913
by: Roopa Nagaral | last post by:
Hi, I am working on vb.net... i need to retrieve particular word from word document and display it on vb.net label or textbox... like in word documnet Name : xyz DOB: 13/02/1990 here i v to retrieve oly the name of the person, dob etc... plz any one help me.. with detail coding.. Help will be Appriciated
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8341
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8751
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8630
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4176
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.