Saturday, March 31, 2012

Word/Excel needed?

If i'm using :

Response.ContentType = "application/vnd.ms-excel"

or

Response.ContentType = "Application/msword"
Response.WriteFile(FilePath)

Does the user have to have Word and Excel installed on the client box to
view the files in IE6??
And if so, and they don't have a full version of Word, will this ContentType
fire up the free Word viewer automatically for viewing??

TIA much!

HarryYou could specify it as a RTF (rich text) with "application/rtf"

You may want to do a little client-side sniffer.. in a try/catch javascript
function, try to instantiate MS Word or excel (you could look up in the
registry what the progid's are..).. if you can't instantiate a programatic
version - then you know it's not installed and handle it accordingly..

"Harry Simpson" <hssimpson@.nospamphgt.net> wrote in message
news:ezDao0BbDHA.1488@.TK2MSFTNGP12.phx.gbl...
> If i'm using :
> Response.ContentType = "application/vnd.ms-excel"
> or
> Response.ContentType = "Application/msword"
> Response.WriteFile(FilePath)
> Does the user have to have Word and Excel installed on the client box to
> view the files in IE6??
> And if so, and they don't have a full version of Word, will this
ContentType
> fire up the free Word viewer automatically for viewing??
> TIA much!
> Harry
It think the Word viewer should take over if Word is not on the machine. You
may run into some security settings on some browsers, depending on the zone.

--
Microsoft MVPs have a question for *you*: Are you patched against the Worm?
http://www.microsoft.com/security/s...ns/ms03-026.asp

"Harry Simpson" <hssimpson@.nospamphgt.net> wrote in message
news:ezDao0BbDHA.1488@.TK2MSFTNGP12.phx.gbl...
If i'm using :

Response.ContentType = "application/vnd.ms-excel"

or

Response.ContentType = "Application/msword"
Response.WriteFile(FilePath)

Does the user have to have Word and Excel installed on the client box to
view the files in IE6??
And if so, and they don't have a full version of Word, will this ContentType
fire up the free Word viewer automatically for viewing??

TIA much!

Harry

WordDocument in Asp.Net Pages

Hi all,I want to show the word document/Text document in aspx file.Is there any control avaliable for this.(I want to restrict the user not to modify the .doc files)

Thanks in Advance
DanaHi danasegarane,

There are a some links for you: [Microsoft Word Documents from ASP.NET]
http://www.codeproject.com/aspnet/wordapplication.asp
http://www.msdner.com/forum/thread520496.html

and [Creating Word Documents with XSLT]
http://weblogs.asp.net/cnagel/archive/2004/09/25/234188.aspx

Hi,

I don't think its possible with any of the controls available in ASP.Net. But the below third party control will be able to do it:

http://www.dart.com/pwtb.aspx


Hi danasegarane,

There are already some word dlls well defined thus you can utilized directly. Based on my understanding, the first thing you may need to do is to add microsoft.office.interop.word.dll as a reference in your asp.net project.

Here is the code that helps to read any document (like .doc, .rtf , txt )
from specified location. This is a web based application and this code is
written in C# as code behind in ASP.Net 2.0, where the word document
is hard to upload from client side. Here is the code that uploads the
document file and stores it into a string and from that I have placed
that string into a textbox..................

More info. you can take a look at:http://www.codeproject.com/aspnet/wordapplication.asp?df=100&forumid=15166&exp=0&select=1651351

andhttp://eggheadcafe.com/tutorials/aspnet/b6f75379-840c-4745-a76c-04d43694333b/read-a-word-document-do.aspx

Hope my suggestion helps

This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

WordML Browser-based Editor

Has anyone built a WYSIWYG browser text editor that outputs WordML (for storage in a DB)?
I need a system that can output heavily formatted legal documents, and I want them written in a web browser by users familiar with the standard MS Word tools.
Microsoft Word in a browser is what I want - able to generate tables of contents, give a page preview, (according to pre-defined page dimensions).
Am I dreaming or does this exist somewhere?I'll add a bit more detail so my needs are a bit clearer:
Consider this scenario: I have 4 lawyers working on a brief related to a mining company. These 4 lawyers are spread across three countries, and they need to collaborate on a lengthy brief which then needs to be reviewed by a barrister (back at head office) and then printed and filed (in hard copy) with the courts.
Our current approach to dealing with this is to send Word documents back and forth and to try and keep a record of where the most current version actually is... totally dependent on human accuracy and terribly error prone. Nightmare.
We needtrue collaborative authoring, across a secure web browser and location independent. We need it to be server based (in the example above, one of our lawyers was in the mountains of Argentina... downloading some huge java app onto a local PC was out of the question.)
We also want to eliminate the need to store huge file archives consisting of thousands of word docs - if all of the content of these docs was stored as some flavour of XML in a DB table we could reconstruct the file on demand, plus maintain a history listing of when the document was edited and by whom.
The best example I can think of is a combination of the Wiki technology (eg.www.wikipedia.org) with true WYSIWYG browser editing to a decent degree of sophistication.
If this doesn't exist, then one of you should build it... it would sell ferociously well (assuming its security could be demonstrated).

WordML and asp.net and client side browsers

Hi all

I have word documents that is saved as word 2003 xml.

My asp.net application allows users to see these files and download
them.

I would then like these files to be edited by the user in their
browser. How can I do this? What options do I have?you'd have to convert it to doc format by changing the content type and
saving the file as doc so that the browser can read it. The browser will
simply format it as xml if you use wordml

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-----------------

"Me" <ilyas@.igsoftwaresolutions.co.ukwrote in message
news:1154943591.077922.156420@.i3g2000cwc.googlegro ups.com...

Quote:

Originally Posted by

Hi all
>
I have word documents that is saved as word 2003 xml.
>
My asp.net application allows users to see these files and download
them.
>
I would then like these files to be edited by the user in their
browser. How can I do this? What options do I have?
>

wordml and asp.net

hey all,
i'm using wordml and merging data from database but there's a record in the
database that contains an & ampersand in it causing not to be well-formed.
any ideas?
thanks,
rodcharPerhaps you should encode it.
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"rodchar" <rodchar@.discussions.microsoft.com> wrote in message
news:ADCAE3F7-4AC4-420B-B156-AA3CD1D97360@.microsoft.com...
> hey all,
> i'm using wordml and merging data from database but there's a record in
> the
> database that contains an & ampersand in it causing not to be well-formed.
> any ideas?
> thanks,
> rodchar

WordPress and Asp.Net 2.0

Hello,

Is there any control on how to integrate WordPress Blogs on an Asp.Net 2.0 web site?

Thanks,

Miguel

Since WordPress is a PHP/MySQL application, there's really no integration with ASP.NET at all. You can use it side by side with your web site of course, but you might want to use an ASP.NET blogging app like DasBlog.

Jeff

Wordwrap DataGrid Columns

Hi there, I create a report online with basically a dump of loads of tables.
One of them has 27 columns and as such it ignores the datagrid.width property
and goes right along the screen in a landscape fashion. the users want to
print out in portrait however and i cant work out how to tell .net to
wordwrap at column no. x ??

Any ideas? I can query how many columns there are but cant seem to get into
the datagrid at the point of this column and put in a <br> ..?You try to Wrap property in table cell, check out this links for more
details,
http://msdn.microsoft.com/library/d...wrap topic.asp

--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com

"louise raisbeck" <louiseraisbeck@.discussions.microsoft.com> wrote in
message news:1E40BA9A-F6DF-47CE-B30D-6DCDAB822597@.microsoft.com...
> Hi there, I create a report online with basically a dump of loads of
tables.
> One of them has 27 columns and as such it ignores the datagrid.width
property
> and goes right along the screen in a landscape fashion. the users want to
> print out in portrait however and i cant work out how to tell .net to
> wordwrap at column no. x ??
> Any ideas? I can query how many columns there are but cant seem to get
into
> the datagrid at the point of this column and put in a <br> ..?