Quantcast
Channel: Downloading excel file
Browsing index pages (11 articles)

Downloading excel file

hii have some code to generate a excel workbook with a sheet filled with some informations.Instead of just save the excel file locally on the server, i want the user to save in on theres owns...

View Article


Re: Downloading excel file

From Micrsoft http://support.microsoft.com/kb/312629/en-usPRB: ThreadAbortException Occurs If You Use Response.End, Response.Redirect, or Server.TransferPRB: ThreadAbortException Occurs If You Use...

View Article


Re: Downloading excel file

Hi, First you need to save the file in your system or, you can use stream/buffer the excel directly to response. Try modifying like this:Dim fileName As String = Server.MapPath("~/temp/" &...

View Article

Re: Downloading excel file

My code looks like this now, but i dont get a form showing where i can selcet where to save my file? But the code is no longer cast an exception.Dim fileName As String = Server.MapPath("~/temp/" &...

View Article

Re: Downloading excel file

First of all there is no need to save the file on server....if you have byts you can stream those bytes to the client browser...chekc out this code for have save dialog on the client browser -...

View Article


Re: Downloading excel file

Hello,Kristian_ASP but i dont get a form showing where i can selcet where to save my file?That's because you've not specified a content length. Write it as belowFileInfo fileInfo = new...

View Article

Re: Downloading excel file

it dosent workThis code failed with: "the file is using by another process."Dim guid As Guid = guid.NewGuid() Dim fileName As String = Server.MapPath("~/temp/" & guid.ToString() & ".xlsx")...

View Article

Re: Downloading excel file

public void word() { HttpContext.Current.Response.Clear(); HttpContext.Current.Response.ClearHeaders(); HttpContext.Current.Response.ClearContent();...

View Article


Re: Downloading excel file

dosent work :(

View Article


Re: Downloading excel file

Hi,I have tested below code in C#, which you could convert it into VB format. Just add a button into the aspx file, create Button1_Click event to download the excel file;.aspx file:<%@ Page...

View Article

Re: Downloading excel file

Hi Kristian ,Dim Final_Sheet As String Final_Sheet = Server.MapPath("~/TemsCms/uploads/MHGCalculationFiles/" + filename) 'Download The Excel File Dim attachment As String = "attachment; filename="...

View Article
Browsing index pages (11 articles)


Latest Images