Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ASP/VB.NET Create Excel workbook with multiple worksheets (not using Automation)

Posted on 2004-10-29
10
Medium Priority
?
744 Views
Last Modified: 2008-01-09
I need to create Excel workbooks containing a variable number of worksheets. Is this possible using ADO.NET? As well as writing data I will also need to set column widths and format certain cell colours.
0
Comment
Question by:WhiteEagle
[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
  • 6
  • 4
10 Comments
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 12443320
Sorry, you have to use automation. ADO.net can't do that for you
0
 
LVL 25

Accepted Solution

by:
RonaldBiemans earned 1000 total points
ID: 12443370
You can use ADO.net to read from and write to an excel worksheet, but you can not create workbooks/sheets, alter column widths format cell colours without automation.
0
 

Author Comment

by:WhiteEagle
ID: 12443419
If I go with automation, doesn't that mean I need a method to restrict the number of users who are trying to generate an Excel file at the same time?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 12443478
Hi WhiteEagle,

What do mean with, "restrict the number of users who are trying to generate an Excel file at the same time"

do you mean to check if the excel file already exist ?
0
 

Author Comment

by:WhiteEagle
ID: 12443526
No. I am concerned that Excel is a single-user desktop application, and therefore problems may occur iseveral users on the server are all trying to create an Excel file using Automation at the same time.
0
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 12443574
That shouldn't be a problem, since all the users will instanciate their own excel object on there 'local' computer
0
 

Author Comment

by:WhiteEagle
ID: 12443616
If the code is running on the server, won't the server be creating many instances of an Excel object, one for each user trying to create an Excel file?
0
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 12443687
Sorry, I just realized it is a Web application.

You are correct, it will create many instances of the excel object but as far as I know, there is no restriction on that besides memory.

The fact that excel is a single user desktop application just means that there can only be one user per instance, but there can be many instances.

0
 
LVL 25

Expert Comment

by:RonaldBiemans
ID: 12443702
I explained it quite bad, but I think you get the idea
0
 

Author Comment

by:WhiteEagle
ID: 12443716
many thanks for your help
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

610 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