Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

Abort Option for the Excel Automated report generation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kumar.A.P.P - 16 Oct 2007 09:48 GMT
I am using Excel automation for a report.
Dim objExcel As New Excel.Application
               objExcel.DisplayAlerts = False
               Dim objWorkbooks As Excel.Workbooks = objExcel.Workbooks
               Dim objWorkbook As Excel.Workbook
               Dim objXLsheetUnits As Excel.Worksheet
objWorkbook = objWorkbooks.Open(strPath)
Then worksheets are populated with data from database and a macro is run as
objExcel.Run("Update_Workbook")
Process is killed forcefully on exit.

I want to add an Abort Option for the Run Report functionality.
If user clicks Run report and then Abort the report generation should stop
and
the process should be killed. But I can see the btnAbort.Click() is not
invoked
untill the report generation is completed.
Has anyone worked in Excel Automation implemented Abort Functionality?

Signature

Kumar.A.P.P
Software Engineer, Infosys Technologies Limited.
http://techaid.wordpress.com/

Mark Rae [MVP] - 16 Oct 2007 10:21 GMT
>I am using Excel automation for a report.
> Dim objExcel As New Excel.Application

Server-side Office automation cannot be used reliably in an ASP.NET
solution - it is not supported by Microsoft because it doesn't work:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2

Use this instead: http://www.aspose.com/Products/Aspose.Cells/Default.aspx

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.