Solved

Excel in ASP.NET

Posted on 2003-11-13
5
248 Views
Last Modified: 2010-04-17
Hello,

I would like to know how can i make a Excel file in the server and mail it to some one.
The problem is the fact that the server don't have the Excel installed.

Thanks in advance.
JC
0
Comment
Question by:jcintra
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 14

Accepted Solution

by:
Thandava Vallepalli earned 50 total points
ID: 9745802
Hi,

First try with this code...
==================================
<%@ language=vbscript %>
<%
Response.ContentType = "application/vnd.ms-excel"
%>
<TABLE>
<TR>
<TD>
<!-- Cell : A1 -->
2
</TD>
</TR>
<TR>
<TD>
<!-- Cell : A2 -->
3
</TD>
</TR>
<TR>
<TD>
<!-- Cell : A3 -->
=SUM(A1:A2)
</TD>
</TR>
</TABLE>
=================================

Make this file as .asp.  And access this application.

It will open this content in excel.    

For sending mails.  Prepare the excel content like below and save this file as  .xls  and send this file as attachment.

=============================
<TABLE>
<TR>
<TD>
<!-- Cell : A1 -->
2
</TD>
</TR>
<TR>
<TD>
<!-- Cell : A2 -->
3
</TD>
</TR>
<TR>
<TD>
<!-- Cell : A3 -->
=SUM(A1:A2)
</TD>
</TR>
</TABLE>
====================================

All the best,
V.Thandava Krishna.
0
 
LVL 14

Expert Comment

by:Thandava Vallepalli
ID: 9745819
Hi,

Still have any problmes look at this link.....


http://forums.aspfree.com/t19349/s008573c7e2a326b074b5d7a591b5448b.html

All the best,
V.Thandava krishna.
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
If you don't know how to downgrade, my instructions below should be helpful.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question