Advertisement

09.05.2007 at 04:26PM PDT, ID: 22809429
[x]
Attachment Details

Open, Edit and Save Excel file using VB.NET code

Asked by Terrace in .NET

Tags: excel, file, open, save, using

I designed Web App using VB.NET and I want to add a new feature.
User would click on a link button on a web page and that would basically start following process behind the scene:

1.  2 numeric values are retrieved from Database and stored in 2 hidden labels in web page (know how to do this)
2.  My .NET code then should open a specific XSL spreadsheet (path to this file is known)
3.  Those 2 numeric values known to .NET will be then insterted into specific 2 places (cells) in the XSL spreadsheet
4.  Excel file would then run a predesigned and saved macro
5.  Ideally then Excel file would Publish itself into PDF file and would save itself to a known place on HD (path and file naming convention would be known and specified)

So basically - how to write VB.NET code to open an Excel file, run macros in it, and save it as a PDF?


Thanks
Start Free Trial
[+][-]09.05.2007 at 07:45PM PDT, ID: 19837221

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.06.2007 at 10:20AM PDT, ID: 19842011

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.06.2007 at 07:40PM PDT, ID: 19845057

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: .NET
Tags: excel, file, open, save, using
Sign Up Now!
Solution Provided By: gnoon
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628