473,327 Members | 2,012 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,327 software developers and data experts.

Export to Excel strange Thread Error

I'm using an article "http://www.dotnetjohn.com/articles.aspx?articleid=36"
to create an exported excel doucment, it works great expect when I placed an
reponse.write catch error on his try/catch I get this:

Catch Exc As Exception
Response.Write("Error: " & Exc.Message & "<br>")

"Error: Thread was being aborted."

But the excel document looks fine.

does anyone know what it means? I'm running the app on a Win2003 server, my
client is IE6.0 with Office 2003.

Thanx.
Nov 19 '05 #1
2 4811
Hi Chris,

This error happen when you redirect to another page, if you did that yon can
ignore that error for logging purpose.
Catch Exc As System.Threadhing.ThreadAbortException
' redirect no log
Catch Exc As Exception
Response.Write("Error: " & Exc.Message & "<br>")

--------------------------
Jean-Claude Morin, MCP
Software Developer
2k1Soft/kCentric, Canada
"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
I'm using an article "http://www.dotnetjohn.com/articles.aspx?articleid=36" to create an exported excel doucment, it works great expect when I placed an reponse.write catch error on his try/catch I get this:

Catch Exc As Exception
Response.Write("Error: " & Exc.Message & "<br>")

"Error: Thread was being aborted."

But the excel document looks fine.

does anyone know what it means? I'm running the app on a Win2003 server, my client is IE6.0 with Office 2003.

Thanx.

Nov 19 '05 #2
thanx, I wonder what the purpose is for throwing the error is reaching page
via redirect. That's what I did. Oh, well, I'm sure there is a logical
reason. Thanx again.

"Jc Morin" wrote:
Hi Chris,

This error happen when you redirect to another page, if you did that yon can
ignore that error for logging purpose.
Catch Exc As System.Threadhing.ThreadAbortException
' redirect no log
Catch Exc As Exception
Response.Write("Error: " & Exc.Message & "<br>")

--------------------------
Jean-Claude Morin, MCP
Software Developer
2k1Soft/kCentric, Canada
"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
I'm using an article

"http://www.dotnetjohn.com/articles.aspx?articleid=36"
to create an exported excel doucment, it works great expect when I placed

an
reponse.write catch error on his try/catch I get this:

Catch Exc As Exception
Response.Write("Error: " & Exc.Message & "<br>")

"Error: Thread was being aborted."

But the excel document looks fine.

does anyone know what it means? I'm running the app on a Win2003 server,

my
client is IE6.0 with Office 2003.

Thanx.


Nov 19 '05 #3

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

Similar topics

1
by: Matt | last post by:
I have an ASP page that calls ASP routines that I created that execute a database query and return the results to a recordset. I then iterate through the recordset and display the data in a table....
1
by: Benny Ng | last post by:
Hi,All, Export Method: ------------------------------------------------------------------------- strFileNameExport = "Results" Response.Clear() Response.Buffer = True...
0
by: Max Mayer | last post by:
Hello everybody, I have implemented a windows form in C# .NET to export data from a listbox to Excel. I work on a Windows XP machine with Office 97 and .NET framework 1.1 SDK installed. I use...
0
by: Max Mayer | last post by:
Hello everybody, I have implemented a windows form in C# .NET to export data from a listbox to Excel. I work on a Windows XP machine with Office 97 and .NET framework 1.1 SDK installed. I use...
3
by: Marja Ribbers-de Vroed | last post by:
Hi, One of my clients has a strange problem with my webapplication which I think may be related to some firewall setting on his computer. On several screens in the application, it is possible...
14
by: bonehead | last post by:
Greetings, I'm using the DoCmd.TransferText method to export the results of a MS Access query to a csv file. The csv will then be used to load an Oracle table. In other systems such as TOAD...
1
by: CoolFactor | last post by:
MY CODE IS NEAR THE BOTTOM I want to export this Access query into Excel using a command button on an Access form in the following way I describe below. Below you will find the simple query I am...
1
by: bmcgeoch | last post by:
To preface this post, I personally did not create the database in question. It was created by someone working for our technical support provider. That person has since left the company and is not...
2
by: Access user | last post by:
My apologies for crossposting this, but I did not get any response in microsoft.public.access ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...

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.