473,385 Members | 1,907 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,385 software developers and data experts.

How To Create Excel Report in Asp.net 2003

Hello Friends

I am using asp.net 2003.I have to create a report in excel that shows the data after getting it from oracle tables.Can anyone help me.

I had already tried this code
Dim a As Excel.Application
a = CreateObject("EXCEL.APPLICATION")

Dim book As Excel.Workbook


book = a.Workbooks.Add()

Dim sheet As Excel.Worksheet

sheet = book.Sheets.Add()

sheet.Cells(1, 1) = "Test"
a.Visible = True
but nothing is happening


Thanks in advance
aman
Nov 20 '07 #1
6 3205
mzmishra
390 Expert 256MB
http://www.aspnetpro.com/NewsletterArticle/2003/09/asp200309so_l/asp200309so_l.asp
Nov 20 '07 #2
dip_developer
648 Expert 512MB
Hello Friends

I am using asp.net 2003.I have to create a report in excel that shows the data after getting it from oracle tables.Can anyone help me.

I had already tried this code
Dim a As Excel.Application
a = CreateObject("EXCEL.APPLICATION")

Dim book As Excel.Workbook


book = a.Workbooks.Add()

Dim sheet As Excel.Worksheet

sheet = book.Sheets.Add()

sheet.Cells(1, 1) = "Test"
a.Visible = True
but nothing is happening


Thanks in advance
aman
look here.....you will get an idea, which may be helpful
http://www.developer.com/net/asp/article.php/3633891
Nov 20 '07 #3
Thanks for your reply
by using the code present on http://www.developer.com/net/asp/article.php/3633891
i only can see the data present in a table but i have to do some modifications with excel cells also like adding heading, put values in cells of column of report etc. so please help me for this.

thnks
aman
Nov 20 '07 #4
and also by using the code present on http://www.aspnetpro.com/NewsletterArticle/2003/09/asp200309so_l/asp200309so_l.asp

the following error is coming

Compiler Error Message: BC31011: Unable to load referenced library 'c:\winnt\microsoft.net\framework\v1.1.4322\tempor ary asp.net files\proexceldom\d5004824\8139a7c7\assembly\dl2\0 1778c6d\0034d791_786bbe01\interop.vbide.dll': Access is denied.

please help me for solving this problem its very urgent for me

Thanks
aman
Nov 20 '07 #5
dip_developer
648 Expert 512MB
and also by using the code present on http://www.aspnetpro.com/NewsletterArticle/2003/09/asp200309so_l/asp200309so_l.asp

the following error is coming

Compiler Error Message: BC31011: Unable to load referenced library 'c:\winnt\microsoft.net\framework\v1.1.4322\tempor ary asp.net files\proexceldom\d5004824\8139a7c7\assembly\dl2\0 1778c6d\0034d791_786bbe01\interop.vbide.dll': Access is denied.

please help me for solving this problem its very urgent for me

Thanks
aman
I suggest you to make a report with a standart reporting tool [like crystal report] and export your report to excel...which will be easy.......you can easily add header and other parameters to your report.......

otherwise you have to manipulate the dataset table........

office automation is not a recomended technique as far I know.......
Nov 20 '07 #6
Thanks
But It is necessary for me to develop report in excel coz in company its a requirement

Thnks
aman
Nov 20 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Randy Morrison | last post by:
I have a report created in ASP (not ASP.NET) that uses Response.ContentType="application/vnd.ms-excel" to display the results of a query from SQL Server 2003 formatted as an html table using Excel...
3
by: Rana | last post by:
I developed a reporting website using ASP.NET and Microsoft Office XP. The reports are generated using Microsoft Excel. It works perfectly as designed in the development environment. I deployed it...
5
by: ken | last post by:
how ASP.NET to generate excel report(office 2003) to client what component i need to reference into the asp.net application and what component i need to install to the server? Moreover, does it...
3
by: Ian Dunn | last post by:
I'm simply trying to access an instance of Excel that has been opened manually by the user in order to put a few values in the existing sheet. Here's the code I've tried: Dim oXL As...
2
by: Senthil | last post by:
Hi All I need to create an Excel report and create a command button and have to run a macro on the click event that will print all the pages in the Excel workbook. I am able to create the report...
0
by: Mark123 | last post by:
Every time people using our 97 Runtime App try to export (OutputTo) a previewed report to Excel or Word 2003 it gives a "Microsoft Access has encountered an error" and then proceeds to crash and...
3
by: Inbox.Mirror.Orbisoft | last post by:
In the last 1-3 weeks, we have had numerous users of Task Manager 2007 (www.orbisoft.com) complain that they can no longer export certain reports (Task Manager 2007 uses a Sagekey.com Access 97...
15
by: =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?= | last post by:
Hi All, We are in the process of Upgrade Excel 2003 (Office 2003) to Excel 2007 (Office 2007) for one of web application. This web application is using Excel (Pivot Table) reports. With Excel...
2
by: mccalla | last post by:
Hi, I am very new to MS Access. I have inherited an existing app which was done in MS Access 2003. In this app, there is a report which contains a memo field. There are no formats, functions,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...

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.