473,947 Members | 17,646 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sending generated Office documents without saving them to disk

I am creating dynamically some Office documents in my ASP.NET application. When I want to send the resulting document to the client, I am currently saving it to the local disk and then redirecting user's browser to it.
Is there any way to skip this saving phase, i.e. to send the document directly from memory?

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>BN9dKSONYEq ICf01CWVYzA==</Id>
Nov 18 '05 #1
1 1293
you can use Response.Write.
Set the Response.Conten tType to the respective office doc type.

Av.

"Mladen Jablanovic via .NET 247" <an*******@dotn et247.com> wrote in message
news:eZ******** ******@TK2MSFTN GP12.phx.gbl...
I am creating dynamically some Office documents in my ASP.NET application.
When I want to send the resulting document to the client, I am currently
saving it to the local disk and then redirecting user's browser to it.
Is there any way to skip this saving phase, i.e. to send the document
directly from memory?

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>BN9dKSONYEq ICf01CWVYzA==</Id>

Nov 18 '05 #2

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

Similar topics

5
1999
by: Ed | last post by:
Hi there, I have a very specific problem and hopefully there is a solution out there for me. I have a folder with thousands of Excel documents. Each of these documents has a header with the destination phone number in a specific cell. I would like to somehow programmatically Fax all these documents to the appropriate phone number. The folder and the documents are generated monthly.
2
1347
by: edi | last post by:
Hi, How can I uses MS office documents in my application? Are there any managed classes for loading, saving and so on office documents? Thanks.
5
311
by: Ed | last post by:
Hi there, I have a very specific problem and hopefully there is a solution out there for me. I have a folder with thousands of Excel documents. Each of these documents has a header with the destination phone number in a specific cell. I would like to somehow programmatically Fax all these documents to the appropriate phone number. The folder and the documents are generated monthly.
6
3376
by: Karl | last post by:
Hi all, It may seem like a rather odd request (or not) but I would like to be able to create a file (doc, jpg, xls or one of many other files that can be automated) on a website and stream it to a user without saving it to the disk first. Obviously saving the file first and streaming it afterwards is fairly easy to do, but it relies on disk write permissions on the server and you'd have to make sure the file was removed afterwards.
0
10162
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
9982
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
11153
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...
1
11343
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10689
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
9886
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
4944
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4533
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3541
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.