473,383 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Streaming only the body of an MSWord document

Is there some way to stream only the body of a Word document (.doc), without
all the hidden information, such as the gobbledygook at the top and document
prroperties?
Jan 19 '06 #1
5 1065
no - that would not be a complete document. What you could do is invoke
word server side and pick out the sections you needed and return them as
text with a doc extension leaving all the properties and stuff blank when
word opened it as a new document.

--
Regards

John Timney
Microsoft MVP

"Stephen R. Gibson" <St************@discussions.microsoft.com> wrote in
message news:E1**********************************@microsof t.com...
Is there some way to stream only the body of a Word document (.doc),
without
all the hidden information, such as the gobbledygook at the top and
document
prroperties?

Jan 19 '06 #2
What exactly are you asking? Do you only want to send the text in the
document?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

"Stephen R. Gibson" <St************@discussions.microsoft.com> wrote in
message news:E1**********************************@microsof t.com...
Is there some way to stream only the body of a Word document (.doc),
without
all the hidden information, such as the gobbledygook at the top and
document
prroperties?

Jan 19 '06 #3
I want the text at a minimum. Formatted text would be better. The whole
"public face" of the document would be best.
Basically, what i'm trying to accomplish is to display the contents of
documents uploaded by users within the context of my site, rather than
serving up the whole document outside the page.
I hope that makes sense.

"Kevin Spencer" wrote:
What exactly are you asking? Do you only want to send the text in the
document?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

"Stephen R. Gibson" <St************@discussions.microsoft.com> wrote in
message news:E1**********************************@microsof t.com...
Is there some way to stream only the body of a Word document (.doc),
without
all the hidden information, such as the gobbledygook at the top and
document
prroperties?


Jan 20 '06 #4
How would one go about that?

"John Timney ( MVP )" wrote:
no - that would not be a complete document. What you could do is invoke
word server side and pick out the sections you needed and return them as
text with a doc extension leaving all the properties and stuff blank when
word opened it as a new document.

--
Regards

John Timney
Microsoft MVP

"Stephen R. Gibson" <St************@discussions.microsoft.com> wrote in
message news:E1**********************************@microsof t.com...
Is there some way to stream only the body of a Word document (.doc),
without
all the hidden information, such as the gobbledygook at the top and
document
prroperties?


Jan 20 '06 #5
You'll need to install office on your server, and manipulate the documents
via automation

Start here:

http://www.codeproject.com/aspnet/wordapplication.asp

--
Regards

John Timney
Microsoft MVP

"Stephen R. Gibson" <St************@discussions.microsoft.com> wrote in
message news:F4**********************************@microsof t.com...
How would one go about that?

"John Timney ( MVP )" wrote:
no - that would not be a complete document. What you could do is invoke
word server side and pick out the sections you needed and return them as
text with a doc extension leaving all the properties and stuff blank when
word opened it as a new document.

--
Regards

John Timney
Microsoft MVP

"Stephen R. Gibson" <St************@discussions.microsoft.com> wrote in
message news:E1**********************************@microsof t.com...
> Is there some way to stream only the body of a Word document (.doc),
> without
> all the hidden information, such as the gobbledygook at the top and
> document
> prroperties?


Jan 20 '06 #6

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

Similar topics

0
by: Philipp Lenssen | last post by:
I have a password-protected website with downloads. The password-protection needed its own login-screen, so I use a session-object. It works well but now I also want the downloads (PDFs and...
22
by: googlegroups | last post by:
I am playing with the XMLHTTPRequest method to perform client/server transactions. I have it set up right now so that when readyState is 4, it takes the XML and processes it. This works great until...
0
by: staleb | last post by:
Hi I want to open a MSWord document on the clients PC/MSWord, the solution I use now is this: <script language=vbscript runat=Server> <!-- sub OpenDoc(strLocation) set objWord =...
7
by: lkr | last post by:
hi is there is anyway to capture the document events of a MSWord?eg:I have to handle the event awhen WM_KEYUP or anyother events will occur. give me a solution............ thanks in advance lkr
3
by: Ipsita | last post by:
Hi! I am trying SOAP with DIME attachments in web services. For example say, I have a file resume.pdf stored somewhere on my server. How does the web service send the file to the client, so that...
0
by: Rudy Deitrick | last post by:
I'm displaying a Word doc on the client by streaming HTML to the client and setting the ContentType to 'application/msword'. This works fine on our development server (which does not use SSL), but...
1
by: Andrew | last post by:
I'm adding this as it to me a while to figure out all the pieces to be able to do this without using Microsoft.Office.Interop which caused me problems on the web-server. Streaming is the easy...
6
by: Peter | last post by:
I have to write a ASP.NET application that creates MSWord document from a template and populated with data from the webpage. (Templates can reside on the server or client's hard drive.) What is...
1
by: Matt Curreri | last post by:
I'm trying to automate the creation of a MSWord document with C#; however, when I start creating the MSWord document, I occassionly have a MSWord dialog box displaying a warning of low memory and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.